pub struct CommandAck {
pub command: u16,
pub result: u8,
pub progress: u8,
pub result_param2: i32,
pub target_system: u8,
pub target_component: u8,
}Expand description
COMMAND_ACK: the vehicle’s acknowledgement of a command, carrying the result.
The extension fields report progress for a long-running command
(mav_result::IN_PROGRESS), a
command-specific second result value, and which system and component the
acknowledgement is addressed to.
Fields§
§command: u16§result: u8§progress: u8§result_param2: i32§target_system: u8§target_component: u8Implementations§
Trait Implementations§
Source§impl Clone for CommandAck
impl Clone for CommandAck
Source§fn clone(&self) -> CommandAck
fn clone(&self) -> CommandAck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandAck
Source§impl Debug for CommandAck
impl Debug for CommandAck
Source§impl Default for CommandAck
impl Default for CommandAck
Source§impl Message for CommandAck
impl Message for CommandAck
Source§const NAME: &'static str = "COMMAND_ACK"
const NAME: &'static str = "COMMAND_ACK"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 143
const CRC_EXTRA: u8 = 143
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.
Source§impl PartialEq for CommandAck
impl PartialEq for CommandAck
Source§fn eq(&self, other: &CommandAck) -> bool
fn eq(&self, other: &CommandAck) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandAck
Auto Trait Implementations§
impl Freeze for CommandAck
impl RefUnwindSafe for CommandAck
impl Send for CommandAck
impl Sync for CommandAck
impl Unpin for CommandAck
impl UnsafeUnpin for CommandAck
impl UnwindSafe for CommandAck
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