Trait Connectable

Source
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§

Source

fn connect<M: Message>(&self) -> Result<Box<dyn MavConnection<M> + Sync + Send>>

Attempt to establish a blocking MAVLink connection

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§

Source§

impl Connectable for ConnectionAddress

Source§

impl Connectable for FileConnectable

Source§

impl Connectable for SerialConnectable

Available on crate feature direct-serial only.
Source§

impl Connectable for TcpConnectable

Available on crate feature tcp only.
Source§

impl Connectable for UdpConnectable

Available on crate feature udp only.