Trait MessageSpecStatic

Source
pub trait MessageSpecStatic {
    // Required methods
    fn spec() -> MessageInfo;
    fn message_id() -> MessageId;
    fn crc_extra() -> CrcExtra;
    fn min_supported_mavlink_version() -> MavLinkVersion;
}
Expand description

Generic MAVLink message specification with constant functions.

Each message should implement this trait. This is required for building correct dialects.

Required Methods§

Source

fn spec() -> MessageInfo

Returns specification for this message.

Source

fn message_id() -> MessageId

Message ID.

Source

fn crc_extra() -> CrcExtra

Message CRC_EXTRA.

Minimum supported MAVLink version for this message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§