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§
Provided Methods§
Sourcefn connect_async<M>(
&self,
) -> impl Future<Output = Result<AsyncDialectConnection<StaticDialect<M>>, Error>> + Send
fn connect_async<M>( &self, ) -> impl Future<Output = Result<AsyncDialectConnection<StaticDialect<M>>, Error>> + 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".