Struct mavlink::common::COMMAND_ACK_DATA
source · pub struct COMMAND_ACK_DATA {
pub command: MavCmd,
pub result: MavResult,
pub progress: u8,
pub result_param2: i32,
pub target_system: u8,
pub target_component: u8,
}
common
only.Expand description
id: 77 Report status of a command. Includes feedback whether the command was executed. The command microservice is documented at https://mavlink.io/en/services/command.html.
Fields§
§command: MavCmd
Command ID (of acknowledged command)..
result: MavResult
Result of command..
progress: u8
Also used as result_param1, it can be set with an enum containing the errors reasons of why the command was denied, or the progress percentage when result is MAV_RESULT_IN_PROGRESS (UINT8_MAX if the progress is unknown)..
result_param2: i32
Additional parameter of the result, example: which parameter of MAV_CMD_NAV_WAYPOINT caused it to be denied..
target_system: u8
System ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement..
target_component: u8
Component ID of the target recipient. This is the ID of the system that sent the command for which this COMMAND_ACK is an acknowledgement..
Implementations§
source§impl COMMAND_ACK_DATA
impl COMMAND_ACK_DATA
pub const ENCODED_LEN: usize = 10usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for COMMAND_ACK_DATA
impl Clone for COMMAND_ACK_DATA
source§fn clone(&self) -> COMMAND_ACK_DATA
fn clone(&self) -> COMMAND_ACK_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 COMMAND_ACK_DATA
impl Debug for COMMAND_ACK_DATA
source§impl Default for COMMAND_ACK_DATA
impl Default for COMMAND_ACK_DATA
source§impl<'de> Deserialize<'de> for COMMAND_ACK_DATA
impl<'de> Deserialize<'de> for COMMAND_ACK_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 COMMAND_ACK_DATA
impl MessageData for COMMAND_ACK_DATA
const ID: u32 = 77u32
const NAME: &'static str = "COMMAND_ACK"
const EXTRA_CRC: u8 = 143u8
const ENCODED_LEN: usize = 10usize
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 COMMAND_ACK_DATA
impl PartialEq for COMMAND_ACK_DATA
source§impl Serialize for COMMAND_ACK_DATA
impl Serialize for COMMAND_ACK_DATA
impl StructuralPartialEq for COMMAND_ACK_DATA
Auto Trait Implementations§
impl Freeze for COMMAND_ACK_DATA
impl RefUnwindSafe for COMMAND_ACK_DATA
impl Send for COMMAND_ACK_DATA
impl Sync for COMMAND_ACK_DATA
impl Unpin for COMMAND_ACK_DATA
impl UnwindSafe for COMMAND_ACK_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
)