Struct mavio::protocol::Versionless
source · pub struct Versionless;
Expand description
Marker for entities which are not constrained by a specific MAVLink protocol version.
In the context of Frame
and Header
this means
that although these entities are always belong to some MAVLink protocol version, this
information is opaque to the caller. For example, default Receiver
will
look up for both MAVLink 1
and MAVLink 2
packets and return
Frame<Versionless>
which then can be converted to their
version-specific form by Frame::try_versioned
.
Trait Implementations§
source§impl Clone for Versionless
impl Clone for Versionless
source§fn clone(&self) -> Versionless
fn clone(&self) -> Versionless
Returns a copy 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 Debug for Versionless
impl Debug for Versionless
source§impl Default for Versionless
impl Default for Versionless
source§fn default() -> Versionless
fn default() -> Versionless
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Versionless
impl<'de> Deserialize<'de> for Versionless
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MaybeVersioned for Versionless
impl MaybeVersioned for Versionless
source§fn expect(version: MavLinkVersion) -> Result<(), VersionError>
fn expect(version: MavLinkVersion) -> Result<(), VersionError>
Validates that provided frame matches MAVLink protocol version. Read more
source§impl Serialize for Versionless
impl Serialize for Versionless
impl Copy for Versionless
Auto Trait Implementations§
impl Freeze for Versionless
impl RefUnwindSafe for Versionless
impl Send for Versionless
impl Sync for Versionless
impl Unpin for Versionless
impl UnwindSafe for Versionless
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)