pub struct Connection<V: MaybeVersioned> { /* private fields */ }Expand description
⍚ |
sync
MAVLink connection.
Implementations§
Source§impl<V: MaybeVersioned> Connection<V>
impl<V: MaybeVersioned> Connection<V>
Sourcepub fn new(
info: ConnectionInfo,
state: SharedCloser,
) -> (Self, ChannelFactory<V>)
pub fn new( info: ConnectionInfo, state: SharedCloser, ) -> (Self, ChannelFactory<V>)
Creates a new connection and associated ChannelFactory.
Sourcepub fn info(&self) -> &ConnectionInfo
pub fn info(&self) -> &ConnectionInfo
Information about this connection.
Trait Implementations§
Source§impl<V: Debug + MaybeVersioned> Debug for Connection<V>
impl<V: Debug + MaybeVersioned> Debug for Connection<V>
Source§impl<V: MaybeVersioned> Drop for Connection<V>
impl<V: MaybeVersioned> Drop for Connection<V>
Auto Trait Implementations§
impl<V> Freeze for Connection<V>
impl<V> RefUnwindSafe for Connection<V>
impl<V> Send for Connection<V>
impl<V> Sync for Connection<V>
impl<V> Unpin for Connection<V>
impl<V> UnsafeUnpin for Connection<V>
impl<V> UnwindSafe for Connection<V>
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