pub trait MessageSpecStatic {
// Required methods
fn spec() -> MessageInfo;
fn message_id() -> u32;
fn crc_extra() -> u8;
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§
Sourcefn spec() -> MessageInfo
fn spec() -> MessageInfo
Returns specification for this message.
Sourcefn message_id() -> u32
fn message_id() -> u32
Message ID
.
Sourcefn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
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.