Skip to main content

AsyncConnectable

Trait AsyncConnectable 

Source
pub trait AsyncConnectable: Sync {
    // Required method
    fn connect_async_with_dialect<D>(
        &self,
        dialect: D,
    ) -> impl Future<Output = Result<AsyncDialectConnection<D>, Error>> + Send
       where D: Dialect + Send + Sync,
             <D as Dialect>::Message: Send + Sync;

    // Provided method
    fn connect_async<M>(
        &self,
    ) -> impl Future<Output = Result<AsyncDialectConnection<StaticDialect<M>>, Error>> + Send
       where M: Message + Sync + Send { ... }
}
Available on crate feature tokio 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_with_dialect<D>( &self, dialect: D, ) -> impl Future<Output = Result<AsyncDialectConnection<D>, Error>> + Send
where D: Dialect + Send + Sync, <D as Dialect>::Message: Send + Sync,

Attempt to establish an asynchronous MAVLink connection with a runtime-loaded dialect.

Provided Methods§

Source

fn connect_async<M>( &self, ) -> impl Future<Output = Result<AsyncDialectConnection<StaticDialect<M>>, Error>> + Send
where M: Message + Sync + Send,

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".

Implementors§