pub enum BatteryMsrv {
BatteryStatus(BatteryStatus),
SmartBatteryInfo(SmartBatteryInfo),
}Expand description
Enum containing all messages within Battery microservice of all dialect.
Variants§
BatteryStatus(BatteryStatus)
MAVLink message BATTERY_STATUS.
SmartBatteryInfo(SmartBatteryInfo)
MAVLink message SMART_BATTERY_INFO.
Implementations§
Source§impl BatteryMsrv
impl BatteryMsrv
Sourcepub fn message_ids() -> impl Iterator<Item = u32>
pub fn message_ids() -> impl Iterator<Item = u32>
Iterator over all message IDs within this dialect.
Requires metadata feature flag to be enabled.
Trait Implementations§
Source§impl Clone for BatteryMsrv
impl Clone for BatteryMsrv
Source§fn clone(&self) -> BatteryMsrv
fn clone(&self) -> BatteryMsrv
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 BatteryMsrv
impl Debug for BatteryMsrv
Source§impl<'de> Deserialize<'de> for BatteryMsrv
impl<'de> Deserialize<'de> for BatteryMsrv
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BatteryMsrv, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BatteryMsrv, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Dialect for BatteryMsrv
impl Dialect for BatteryMsrv
Source§fn dialect() -> Option<u32>
fn dialect() -> Option<u32>
Returns
dialect identifier as specified in MAVLink XML definitions.Source§fn message_info(id: u32) -> Result<&'static dyn MessageSpec, SpecError>
fn message_info(id: u32) -> Result<&'static dyn MessageSpec, SpecError>
Message specification by
id. Read moreSource§fn decode(payload: &Payload) -> Result<BatteryMsrv, SpecError>
fn decode(payload: &Payload) -> Result<BatteryMsrv, SpecError>
Decode dialect message from
Payload.Source§fn spec() -> &'static DialectSpec
fn spec() -> &'static DialectSpec
Dialect specification.
Source§impl From<BatteryMsrv> for All
impl From<BatteryMsrv> for All
Source§fn from(value: BatteryMsrv) -> All
fn from(value: BatteryMsrv) -> All
Converts to this type from the input type.
Source§impl IntoPayload for BatteryMsrv
impl IntoPayload for BatteryMsrv
Source§impl MessageSpec for BatteryMsrv
impl MessageSpec for BatteryMsrv
Source§impl NamedType for BatteryMsrv
impl NamedType for BatteryMsrv
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 PartialEq for BatteryMsrv
impl PartialEq for BatteryMsrv
Source§impl Serialize for BatteryMsrv
impl Serialize for BatteryMsrv
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&Payload> for BatteryMsrv
impl TryFrom<&Payload> for BatteryMsrv
Source§impl TryFrom<All> for BatteryMsrv
impl TryFrom<All> for BatteryMsrv
Source§impl Type for BatteryMsrv
impl Type for BatteryMsrv
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 BatteryMsrv
impl StructuralPartialEq for BatteryMsrv
Auto Trait Implementations§
impl Freeze for BatteryMsrv
impl RefUnwindSafe for BatteryMsrv
impl Send for BatteryMsrv
impl Sync for BatteryMsrv
impl Unpin for BatteryMsrv
impl UnwindSafe for BatteryMsrv
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