Struct mavlink::matrixpilot::CHANGE_OPERATOR_CONTROL_DATA
source · pub struct CHANGE_OPERATOR_CONTROL_DATA {
pub target_system: u8,
pub control_request: u8,
pub version: u8,
pub passkey: [u8; 25],
}
Available on crate feature
matrixpilot
only.Expand description
id: 5 Request to control this MAV.
Fields§
§target_system: u8
System the GCS requests control for.
control_request: u8
0: request control of this MAV, 1: Release control of this MAV.
version: u8
0: key as plaintext, 1-255: future, different hashing/encryption variants. The GCS should in general use the safest mode possible initially and then gradually move down the encryption level if it gets a NACK message indicating an encryption mismatch..
passkey: [u8; 25]
Password / Key, depending on version plaintext or encrypted. 25 or less characters, NULL terminated. The characters may involve A-Z, a-z, 0-9, and “!?,.-”.
Implementations§
source§impl CHANGE_OPERATOR_CONTROL_DATA
impl CHANGE_OPERATOR_CONTROL_DATA
pub const ENCODED_LEN: usize = 28usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for CHANGE_OPERATOR_CONTROL_DATA
impl Clone for CHANGE_OPERATOR_CONTROL_DATA
source§fn clone(&self) -> CHANGE_OPERATOR_CONTROL_DATA
fn clone(&self) -> CHANGE_OPERATOR_CONTROL_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 CHANGE_OPERATOR_CONTROL_DATA
impl Debug for CHANGE_OPERATOR_CONTROL_DATA
source§impl<'de> Deserialize<'de> for CHANGE_OPERATOR_CONTROL_DATA
impl<'de> Deserialize<'de> for CHANGE_OPERATOR_CONTROL_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 CHANGE_OPERATOR_CONTROL_DATA
impl MessageData for CHANGE_OPERATOR_CONTROL_DATA
const ID: u32 = 5u32
const NAME: &'static str = "CHANGE_OPERATOR_CONTROL"
const EXTRA_CRC: u8 = 217u8
const ENCODED_LEN: usize = 28usize
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 CHANGE_OPERATOR_CONTROL_DATA
impl PartialEq for CHANGE_OPERATOR_CONTROL_DATA
source§fn eq(&self, other: &CHANGE_OPERATOR_CONTROL_DATA) -> bool
fn eq(&self, other: &CHANGE_OPERATOR_CONTROL_DATA) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CHANGE_OPERATOR_CONTROL_DATA
Auto Trait Implementations§
impl Freeze for CHANGE_OPERATOR_CONTROL_DATA
impl RefUnwindSafe for CHANGE_OPERATOR_CONTROL_DATA
impl Send for CHANGE_OPERATOR_CONTROL_DATA
impl Sync for CHANGE_OPERATOR_CONTROL_DATA
impl Unpin for CHANGE_OPERATOR_CONTROL_DATA
impl UnwindSafe for CHANGE_OPERATOR_CONTROL_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
)