Trait AsyncConnectable

Source
pub trait AsyncConnectable {
    // Required method
    fn connect_async<'life0, 'async_trait, M>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncMavConnection<M> + Sync + Send>>> + Send + 'async_trait>>
       where M: Message + Sync + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}
Available on crate feature tokio-1 only.
Expand description

A MAVLink connection address that can be connected to, establishing an AsyncMavConnection

This is the async version of Connectable.

Required Methods§

Source

fn connect_async<'life0, 'async_trait, M>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn AsyncMavConnection<M> + Sync + Send>>> + Send + 'async_trait>>
where M: Message + Sync + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Attempt to establish an asynchronous 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 AsyncConnectable for ConnectionAddress

Source§

impl AsyncConnectable for FileConnectable

Source§

impl AsyncConnectable for SerialConnectable

Available on crate feature direct-serial only.
Source§

impl AsyncConnectable for TcpConnectable

Available on crate feature tcp only.
Source§

impl AsyncConnectable for UdpConnectable

Available on crate feature udp only.