Struct mavlink::common::V2_EXTENSION_DATA
source · pub struct V2_EXTENSION_DATA {
pub message_type: u16,
pub target_network: u8,
pub target_system: u8,
pub target_component: u8,
pub payload: [u8; 249],
}
common
only.Expand description
id: 248 Message implementing parts of the V2 payload specs in V1 frames for transitional support..
Fields§
§message_type: u16
A code that identifies the software component that understands this message (analogous to USB device classes or mime type strings). If this code is less than 32768, it is considered a ‘registered’ protocol extension and the corresponding entry should be added to https://github.com/mavlink/mavlink/definition_files/extension_message_ids.xml. Software creators can register blocks of message IDs as needed (useful for GCS specific metadata, etc…). Message_types greater than 32767 are considered local experiments and should not be checked in to any widely distributed codebase..
target_network: u8
Network ID (0 for broadcast).
target_system: u8
System ID (0 for broadcast).
target_component: u8
Component ID (0 for broadcast).
payload: [u8; 249]
Variable length payload. The length must be encoded in the payload as part of the message_type protocol, e.g. by including the length as payload data, or by terminating the payload data with a non-zero marker. This is required in order to reconstruct zero-terminated payloads that are (or otherwise would be) trimmed by MAVLink 2 empty-byte truncation. The entire content of the payload block is opaque unless you understand the encoding message_type. The particular encoding used can be extension specific and might not always be documented as part of the MAVLink specification..
Implementations§
source§impl V2_EXTENSION_DATA
impl V2_EXTENSION_DATA
pub const ENCODED_LEN: usize = 254usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for V2_EXTENSION_DATA
impl Clone for V2_EXTENSION_DATA
source§fn clone(&self) -> V2_EXTENSION_DATA
fn clone(&self) -> V2_EXTENSION_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for V2_EXTENSION_DATA
impl Debug for V2_EXTENSION_DATA
source§impl Default for V2_EXTENSION_DATA
impl Default for V2_EXTENSION_DATA
source§impl<'de> Deserialize<'de> for V2_EXTENSION_DATA
impl<'de> Deserialize<'de> for V2_EXTENSION_DATA
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>,
source§impl MessageData for V2_EXTENSION_DATA
impl MessageData for V2_EXTENSION_DATA
const ID: u32 = 248u32
const NAME: &'static str = "V2_EXTENSION"
const EXTRA_CRC: u8 = 8u8
const ENCODED_LEN: usize = 254usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for V2_EXTENSION_DATA
impl PartialEq for V2_EXTENSION_DATA
source§impl Serialize for V2_EXTENSION_DATA
impl Serialize for V2_EXTENSION_DATA
impl StructuralPartialEq for V2_EXTENSION_DATA
Auto Trait Implementations§
impl Freeze for V2_EXTENSION_DATA
impl RefUnwindSafe for V2_EXTENSION_DATA
impl Send for V2_EXTENSION_DATA
impl Sync for V2_EXTENSION_DATA
impl Unpin for V2_EXTENSION_DATA
impl UnwindSafe for V2_EXTENSION_DATA
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
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)
clone_to_uninit
)