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 FileConnectable
impl Connectable for SerialConnectable
Available on crate feature
direct-serial
only.impl Connectable for TcpConnectable
Available on crate feature
tcp
only.impl Connectable for UdpConnectable
Available on crate feature
udp
only.