pub enum Minimal {
ProtocolVersion(ProtocolVersion),
Heartbeat(Heartbeat),
}Expand description
Enum containing all messages within minimal dialect.
Variants§
ProtocolVersion(ProtocolVersion)
MAVLink message PROTOCOL_VERSION.
Heartbeat(Heartbeat)
MAVLink message HEARTBEAT.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Minimal
impl<'de> Deserialize<'de> for Minimal
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 Dialect for Minimal
impl Dialect for Minimal
Source§fn dialect() -> Option<DialectId>
fn dialect() -> Option<DialectId>
Returns
dialect identifier as specified in MAVLink XML definitions.Source§fn version() -> Option<DialectVersion>
fn version() -> Option<DialectVersion>
Source§fn message_info(id: MessageId) -> Result<&'static dyn MessageSpec, SpecError>
fn message_info(id: MessageId) -> Result<&'static dyn MessageSpec, SpecError>
Message specification by
id. Read moreSource§fn spec() -> &'static DialectSpec
fn spec() -> &'static DialectSpec
Dialect specification.
Source§impl From<ProtocolVersion> for Minimal
impl From<ProtocolVersion> for Minimal
Source§fn from(value: ProtocolVersion) -> Self
fn from(value: ProtocolVersion) -> Self
Converts to this type from the input type.
Source§impl IntoPayload for Minimal
impl IntoPayload for Minimal
Source§impl MessageSpec for Minimal
impl MessageSpec for Minimal
Source§impl NamedType for Minimal
impl NamedType for Minimal
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 Type for Minimal
impl Type for Minimal
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 Flatten for Minimal
impl StructuralPartialEq for Minimal
Auto Trait Implementations§
impl Freeze for Minimal
impl RefUnwindSafe for Minimal
impl Send for Minimal
impl Sync for Minimal
impl Unpin for Minimal
impl UnwindSafe for Minimal
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