pub trait MessageSpec {
// Required methods
fn id(&self) -> MessageId;
fn min_supported_mavlink_version(&self) -> MavLinkVersion;
fn crc_extra(&self) -> CrcExtra;
}Expand description
Generic MAVLink message specification.
MessageInfo implements this trait.
Messages generated by MAVSpec also implement this trait.
Required Methods§
Sourcefn id(&self) -> MessageId
fn id(&self) -> MessageId
Sourcefn min_supported_mavlink_version(&self) -> MavLinkVersion
fn min_supported_mavlink_version(&self) -> MavLinkVersion
Minimum supported MAVLink protocol version.
Messages supporting both MAVLink 1 and MAVLink 2 will return MavLinkVersion::V1.
Messages which make sense only in MAVLink 2 will return MavLinkVersion::V2,
Sourcefn crc_extra(&self) -> CrcExtra
fn crc_extra(&self) -> CrcExtra
Message EXTRA_CRC calculated from message XML definition.
CRC for message name and key message fields to detect incompatible changes in message definition.
See: CRC_EXTRA calculation in MAVLink docs.