pub struct RequestEvent {
pub target_system: u8,
pub target_component: u8,
pub first_sequence: u16,
pub last_sequence: u16,
}Expand description
MAVLink REQUEST_EVENT message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Request one or more events to be (re-)sent. If first_sequence==last_sequence, only a single event is requested. Note that first_sequence can be larger than last_sequence (because the sequence number can wrap). Each sequence will trigger an EVENT or EVENT_ERROR response.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
RequestEvent (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
first_sequence: u16MAVLink field first_sequence.
First sequence number of the requested event.
last_sequence: u16MAVLink field last_sequence.
Last sequence number of the requested event.
Implementations§
Source§impl RequestEvent
impl RequestEvent
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> MessageId
pub const fn message_id() -> MessageId
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 RequestEvent
impl Clone for RequestEvent
Source§fn clone(&self) -> RequestEvent
fn clone(&self) -> RequestEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestEvent
impl Debug for RequestEvent
Source§impl Default for RequestEvent
impl Default for RequestEvent
Source§impl<'de> Deserialize<'de> for RequestEvent
impl<'de> Deserialize<'de> for RequestEvent
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>,
Source§impl From<RequestEvent> for Common
impl From<RequestEvent> for Common
Source§fn from(value: RequestEvent) -> Self
fn from(value: RequestEvent) -> Self
Source§impl IntoPayload for RequestEvent
impl IntoPayload for RequestEvent
Source§impl MessageSpec for RequestEvent
impl MessageSpec for RequestEvent
Source§impl MessageSpecStatic for RequestEvent
impl MessageSpecStatic for RequestEvent
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> MessageId
fn message_id() -> MessageId
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for RequestEvent
impl NamedType for RequestEvent
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 RequestEvent
impl PartialEq for RequestEvent
Source§impl Serialize for RequestEvent
impl Serialize for RequestEvent
Source§impl TryFrom<&Payload> for RequestEvent
impl TryFrom<&Payload> for RequestEvent
Source§impl Type for RequestEvent
impl Type for RequestEvent
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.