pub struct SerialConnectable { /* private fields */ }
Expand description
MAVLink address for a serial connection
Implementations§
Source§impl SerialConnectable
impl SerialConnectable
Sourcepub fn new(port_name: String, baud_rate: usize) -> SerialConnectable
pub fn new(port_name: String, baud_rate: usize) -> SerialConnectable
Creates a serial connection address with port name and baud rate.
Trait Implementations§
Source§impl AsyncConnectable for SerialConnectable
impl AsyncConnectable for SerialConnectable
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,
SerialConnectable: 'async_trait,
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,
SerialConnectable: 'async_trait,
Attempt to establish an asynchronous MAVLink connection
Source§impl Clone for SerialConnectable
impl Clone for SerialConnectable
Source§fn clone(&self) -> SerialConnectable
fn clone(&self) -> SerialConnectable
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Connectable for SerialConnectable
impl Connectable for SerialConnectable
Source§impl Debug for SerialConnectable
impl Debug for SerialConnectable
Auto Trait Implementations§
impl Freeze for SerialConnectable
impl RefUnwindSafe for SerialConnectable
impl Send for SerialConnectable
impl Sync for SerialConnectable
impl Unpin for SerialConnectable
impl UnwindSafe for SerialConnectable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more