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 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 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 NamedType for Versionless
impl NamedType for Versionless
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
this is equivalent to Type::inline but returns a NamedDataType instead.
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
this is equivalent to [Type::definition] but returns a NamedDataType instead.
Source§impl Serialize for Versionless
impl Serialize for Versionless
Source§impl Type for Versionless
impl Type for Versionless
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Returns the definition of a type using the provided generics. Read more
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
Generates a datatype corresponding to a reference to this type,
as determined by its category. Getting a reference to a type implies that
it should belong in the type map (since it has to be referenced from somewhere),
so the output of
definition will be put into the type map.impl Copy for Versionless
impl Flatten 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