pub trait Connectable: Display {
// Required method
fn connect<M: Message>(
&self,
) -> Result<Box<dyn MavConnection<M> + Sync + Send>>;
}
Available on crate feature
std
only.Expand description
A MAVLink connection address that can be connected to, establishing a MavConnection
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Connectable for ConnectionAddress
impl Connectable for FileConfig
impl Connectable for SerialConfig
Available on crate feature
direct-serial
only.impl Connectable for TcpConfig
Available on crate feature
tcp
only.impl Connectable for UdpConfig
Available on crate feature
udp
only.