Struct mavspec_rust_spec::MessageInfo
source · pub struct MessageInfo { /* private fields */ }
Expand description
Generic information about MAVLink message.
Used in dialects to provide information required for message verification and processing.
Implementations§
source§impl MessageInfo
impl MessageInfo
sourcepub const fn new(id: MessageId, crc_extra: CrcExtra) -> Self
pub const fn new(id: MessageId, crc_extra: CrcExtra) -> Self
Default constructor.
Sets min_supported_mavlink_version
to MavLinkVersion::V2
if message id
greater
than u8::MAX
. The latter means it can’t be fitted into MAVLink 1
packet. Otherwise,
sets to MavLinkVersion::V1
.
sourcepub fn id(&self) -> MessageId
pub fn id(&self) -> MessageId
MAVLink message ID.
See: MessageSpec::id
.
sourcepub fn min_supported_mavlink_version(&self) -> MavLinkVersion
pub fn min_supported_mavlink_version(&self) -> MavLinkVersion
Minimum supported MAVLink protocol version.
sourcepub fn crc_extra(&self) -> CrcExtra
pub fn crc_extra(&self) -> CrcExtra
Message EXTRA_CRC
calculated from message XML definition.
See: MessageSpec::crc_extra
.
Trait Implementations§
source§impl Clone for MessageInfo
impl Clone for MessageInfo
source§fn clone(&self) -> MessageInfo
fn clone(&self) -> MessageInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageInfo
impl Debug for MessageInfo
source§impl MessageSpec for MessageInfo
impl MessageSpec for MessageInfo
impl Copy for MessageInfo
Auto Trait Implementations§
impl Freeze for MessageInfo
impl RefUnwindSafe for MessageInfo
impl Send for MessageInfo
impl Sync for MessageInfo
impl Unpin for MessageInfo
impl UnwindSafe for MessageInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more