pub trait Message: Sized {
    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§

Serialize Message into byte slice and return count of bytes written

Implementors§