mavlink

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> + Send + Sync>, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             M: Message + Sync + Send + 'async_trait,
             Self: 'async_trait;
}

Required Methods§

Source

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

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§