#[repr(u32)]pub enum MavMessage {
HEARTBEAT(HEARTBEAT_DATA),
PROTOCOL_VERSION(PROTOCOL_VERSION_DATA),
}standard only.Variants§
HEARTBEAT(HEARTBEAT_DATA)
The heartbeat message shows that a system or component is present and responding. The type and autopilot fields (along with the message component id), allow the receiving system to treat further messages from this system appropriately (e.g. by laying out the user interface based on the autopilot). This microservice is documented at https://mavlink.io/en/services/heartbeat.html.
ID: 0
PROTOCOL_VERSION(PROTOCOL_VERSION_DATA)
Version and capability of protocol version. This message can be requested with MAV_CMD_REQUEST_MESSAGE and is used as part of the handshaking to establish which MAVLink version should be used on the network. Every node should respond to a request for PROTOCOL_VERSION to enable the handshaking. Library implementers should consider adding this into the default decoding state machine to allow the protocol core to respond directly.
ID: 300
Implementations§
Source§impl MavMessage
impl MavMessage
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for MavMessage
impl<'arbitrary> Arbitrary<'arbitrary> for MavMessage
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for MavMessage
impl Clone for MavMessage
Source§fn clone(&self) -> MavMessage
fn clone(&self) -> MavMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MavMessage
impl Debug for MavMessage
Source§impl<'de> Deserialize<'de> for MavMessage
impl<'de> Deserialize<'de> for MavMessage
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 Message for MavMessage
impl Message for MavMessage
Source§fn parse(
version: MavlinkVersion,
id: u32,
payload: &[u8],
) -> Result<Self, ParserError>
fn parse( version: MavlinkVersion, id: u32, payload: &[u8], ) -> Result<Self, ParserError>
Source§fn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Source§fn message_id(&self) -> u32
fn message_id(&self) -> u32
Source§fn default_message_from_id(id: u32) -> Option<Self>
fn default_message_from_id(id: u32) -> Option<Self>
Source§fn random_message_from_id<R: RngCore>(id: u32, rng: &mut R) -> Option<Self>
fn random_message_from_id<R: RngCore>(id: u32, rng: &mut R) -> Option<Self>
arbitrary only.