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§
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§
impl AsyncConnectable for ConnectionAddress
impl AsyncConnectable for FileConfig
impl AsyncConnectable for SerialConfig
Available on crate feature
direct-serial
only.impl AsyncConnectable for TcpConfig
Available on crate feature
tcp
only.impl AsyncConnectable for UdpConfig
Available on crate feature
udp
only.