Skip to main content

Connectable

Trait Connectable 

Source
pub trait Connectable: Display {
    // Required method
    fn connect_with_dialect<D>(
        &self,
        dialect: D,
    ) -> Result<DialectConnection<D>, Error>
       where D: Dialect + Send + Sync;

    // Provided method
    fn connect<M>(&self) -> Result<DialectConnection<StaticDialect<M>>, Error>
       where M: Message { ... }
}
Available on crate feature std only.
Expand description

A MAVLink connection address that can be connected to, establishing a MavConnection

Required Methods§

Source

fn connect_with_dialect<D>( &self, dialect: D, ) -> Result<DialectConnection<D>, Error>
where D: Dialect + Send + Sync,

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

Provided Methods§

Source

fn connect<M>(&self) -> Result<DialectConnection<StaticDialect<M>>, Error>
where M: Message,

Attempt to establish a blocking MAVLink connection

§Errors

When the connection could not be established a corresponding io::Error is returned

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§