Struct mavlink::common::PARAM_EXT_REQUEST_READ_DATA
source · pub struct PARAM_EXT_REQUEST_READ_DATA {
pub param_index: i16,
pub target_system: u8,
pub target_component: u8,
pub param_id: [u8; 16],
}
Available on crate feature
common
only.Expand description
id: 320 Request to read the value of a parameter with either the param_id string id or param_index. PARAM_EXT_VALUE should be emitted in response..
Fields§
§param_index: i16
Parameter index. Set to -1 to use the Parameter ID field as identifier (else param_id will be ignored).
target_system: u8
System ID.
target_component: u8
Component ID.
param_id: [u8; 16]
Parameter id, terminated by NULL if the length is less than 16 human-readable chars and WITHOUT null termination (NULL) byte if the length is exactly 16 chars - applications have to provide 16+1 bytes storage if the ID is stored as string.
Implementations§
source§impl PARAM_EXT_REQUEST_READ_DATA
impl PARAM_EXT_REQUEST_READ_DATA
pub const ENCODED_LEN: usize = 20usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for PARAM_EXT_REQUEST_READ_DATA
impl Clone for PARAM_EXT_REQUEST_READ_DATA
source§fn clone(&self) -> PARAM_EXT_REQUEST_READ_DATA
fn clone(&self) -> PARAM_EXT_REQUEST_READ_DATA
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 PARAM_EXT_REQUEST_READ_DATA
impl Debug for PARAM_EXT_REQUEST_READ_DATA
source§impl<'de> Deserialize<'de> for PARAM_EXT_REQUEST_READ_DATA
impl<'de> Deserialize<'de> for PARAM_EXT_REQUEST_READ_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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for PARAM_EXT_REQUEST_READ_DATA
impl MessageData for PARAM_EXT_REQUEST_READ_DATA
const ID: u32 = 320u32
const NAME: &'static str = "PARAM_EXT_REQUEST_READ"
const EXTRA_CRC: u8 = 243u8
const ENCODED_LEN: usize = 20usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
impl StructuralPartialEq for PARAM_EXT_REQUEST_READ_DATA
Auto Trait Implementations§
impl Freeze for PARAM_EXT_REQUEST_READ_DATA
impl RefUnwindSafe for PARAM_EXT_REQUEST_READ_DATA
impl Send for PARAM_EXT_REQUEST_READ_DATA
impl Sync for PARAM_EXT_REQUEST_READ_DATA
impl Unpin for PARAM_EXT_REQUEST_READ_DATA
impl UnwindSafe for PARAM_EXT_REQUEST_READ_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
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
)