Trait mavlink::Message

source ·
pub trait Messagewhere
    Self: Sized,{
    // Required methods
    fn message_id(&self) -> u32;
    fn message_name(&self) -> &'static str;
    fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize;
    fn parse(
        version: MavlinkVersion,
        msgid: u32,
        payload: &[u8]
    ) -> Result<Self, ParserError>;
    fn message_id_from_name(name: &str) -> Result<u32, &'static str>;
    fn default_message_from_id(id: u32) -> Result<Self, &'static str>;
    fn extra_crc(id: u32) -> u8;
}

Required Methods§

source

fn message_id(&self) -> u32

source

fn message_name(&self) -> &'static str

source

fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize

Serialize Message into byte slice and return count of bytes written

source

fn parse( version: MavlinkVersion, msgid: u32, payload: &[u8] ) -> Result<Self, ParserError>

source

fn message_id_from_name(name: &str) -> Result<u32, &'static str>

source

fn default_message_from_id(id: u32) -> Result<Self, &'static str>

source

fn extra_crc(id: u32) -> u8

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Message for mavlink::ardupilotmega::MavMessage

source§

impl Message for mavlink::asluav::MavMessage

source§

impl Message for mavlink::avssuas::MavMessage

source§

impl Message for mavlink::common::MavMessage

source§

impl Message for mavlink::cubepilot::MavMessage

source§

impl Message for mavlink::development::MavMessage

source§

impl Message for mavlink::icarous::MavMessage

source§

impl Message for mavlink::matrixpilot::MavMessage

source§

impl Message for mavlink::minimal::MavMessage

source§

impl Message for mavlink::paparazzi::MavMessage

source§

impl Message for mavlink::python_array_test::MavMessage

source§

impl Message for mavlink::standard::MavMessage

source§

impl Message for mavlink::test::MavMessage

source§

impl Message for mavlink::ualberta::MavMessage

source§

impl Message for mavlink::uavionix::MavMessage