pub struct ResponseEventError {
pub target_system: u8,
pub target_component: u8,
pub sequence: u16,
pub sequence_oldest_available: u16,
pub reason: MavEventErrorReason,
}Expand description
MAVLink RESPONSE_EVENT_ERROR message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Response to a REQUEST_EVENT in case of an error (e.g. the event is not available anymore).
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
ResponseEventError (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System ID
target_component: u8MAVLink field target_component.
Component ID
sequence: u16MAVLink field sequence.
Sequence number.
sequence_oldest_available: u16MAVLink field sequence_oldest_available.
Oldest Sequence number that is still available after the sequence set in REQUEST_EVENT.
reason: MavEventErrorReasonMAVLink field reason.
Error reason.
Implementations§
Source§impl ResponseEventError
impl ResponseEventError
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for ResponseEventError
impl Clone for ResponseEventError
Source§fn clone(&self) -> ResponseEventError
fn clone(&self) -> ResponseEventError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResponseEventError
impl Debug for ResponseEventError
Source§impl Default for ResponseEventError
impl Default for ResponseEventError
Source§fn default() -> ResponseEventError
fn default() -> ResponseEventError
Source§impl<'de> Deserialize<'de> for ResponseEventError
impl<'de> Deserialize<'de> for ResponseEventError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseEventError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResponseEventError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<ResponseEventError> for Common
impl From<ResponseEventError> for Common
Source§fn from(value: ResponseEventError) -> Common
fn from(value: ResponseEventError) -> Common
Source§impl IntoPayload for ResponseEventError
impl IntoPayload for ResponseEventError
Source§impl MessageSpec for ResponseEventError
impl MessageSpec for ResponseEventError
Source§impl MessageSpecStatic for ResponseEventError
impl MessageSpecStatic for ResponseEventError
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for ResponseEventError
impl NamedType for ResponseEventError
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
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for ResponseEventError
impl PartialEq for ResponseEventError
Source§impl Serialize for ResponseEventError
impl Serialize for ResponseEventError
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,
Source§impl TryFrom<&Payload> for ResponseEventError
impl TryFrom<&Payload> for ResponseEventError
Source§impl Type for ResponseEventError
impl Type for ResponseEventError
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.