pub struct Heartbeat {
pub custom_mode: u32,
pub type_: u8,
pub autopilot: u8,
pub base_mode: u8,
pub system_status: u8,
pub mavlink_version: u8,
}Expand description
HEARTBEAT: the periodic broadcast every MAVLink node sends to announce its type,
autopilot, and status, and the frame a peer waits for before deciding a link is up.
Fields§
§custom_mode: u32§type_: u8§autopilot: u8§base_mode: u8§system_status: u8§mavlink_version: u8Implementations§
Trait Implementations§
impl Copy for Heartbeat
Source§impl Message for Heartbeat
impl Message for Heartbeat
Source§const NAME: &'static str = "HEARTBEAT"
const NAME: &'static str = "HEARTBEAT"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 50
const CRC_EXTRA: u8 = 50
The
CRC_EXTRA seed folded into the checksum of a frame carrying this message.Source§const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
The base fields in wire order as
(type, name, array_len), the input from which
CRC_EXTRA is derived and against which it is verified.Source§const DESCRIPTOR: &'static MessageDescriptor<'static>
const DESCRIPTOR: &'static MessageDescriptor<'static>
The message’s shape as data: the runtime counterpart of this type’s fields, for a
caller reading and writing by name rather than through the struct.
impl StructuralPartialEq for Heartbeat
Auto Trait Implementations§
impl Freeze for Heartbeat
impl RefUnwindSafe for Heartbeat
impl Send for Heartbeat
impl Sync for Heartbeat
impl Unpin for Heartbeat
impl UnsafeUnpin for Heartbeat
impl UnwindSafe for Heartbeat
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