Enum mavlink::standard::MavMessage
source · #[repr(u32)]pub enum MavMessage {
PROTOCOL_VERSION(PROTOCOL_VERSION_DATA),
HEARTBEAT(HEARTBEAT_DATA),
}
Available on crate feature
standard
only.Variants§
PROTOCOL_VERSION(PROTOCOL_VERSION_DATA)
HEARTBEAT(HEARTBEAT_DATA)
Trait Implementations§
source§impl Clone for MavMessage
impl Clone for MavMessage
source§fn clone(&self) -> MavMessage
fn clone(&self) -> MavMessage
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 MavMessage
impl Debug for MavMessage
source§impl<'de> Deserialize<'de> for MavMessage
impl<'de> Deserialize<'de> for MavMessage
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Message for MavMessage
impl Message for MavMessage
fn parse( version: MavlinkVersion, id: u32, payload: &[u8], ) -> Result<Self, ParserError>
fn message_name(&self) -> &'static str
fn message_id(&self) -> u32
fn message_id_from_name(name: &str) -> Result<u32, &'static str>
fn default_message_from_id(id: u32) -> Result<Self, &'static str>
source§fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
Serialize Message into byte slice and return count of bytes written
fn extra_crc(id: u32) -> u8
source§impl PartialEq for MavMessage
impl PartialEq for MavMessage
source§impl Serialize for MavMessage
impl Serialize for MavMessage
impl StructuralPartialEq for MavMessage
Auto Trait Implementations§
impl Freeze for MavMessage
impl RefUnwindSafe for MavMessage
impl Send for MavMessage
impl Sync for MavMessage
impl Unpin for MavMessage
impl UnwindSafe for MavMessage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)