[][src]Struct mavlink::common::COMMAND_ACK_DATA

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,
}

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

WIP: Also used as result_param1, it can be set with a enum containing the errors reasons of why the command was denied or the progress percentage or 255 if unknown the progress when result is MAV_RESULT_IN_PROGRESS..

result_param2: i32

WIP: Additional parameter of the result, example: which parameter of MAV_CMD_NAV_WAYPOINT caused it to be denied..

target_system: u8

WIP: System which requested the command to be executed.

target_component: u8

WIP: Component which requested the command to be executed.

Implementations

impl COMMAND_ACK_DATA[src]

pub const ENCODED_LEN: usize[src]

pub fn deser(
    version: MavlinkVersion,
    _input: &[u8]
) -> Result<Self, ParserError>
[src]

pub fn ser(&self) -> Vec<u8>[src]

Trait Implementations

impl Clone for COMMAND_ACK_DATA[src]

impl Debug for COMMAND_ACK_DATA[src]

impl Default for COMMAND_ACK_DATA[src]

impl<'de> Deserialize<'de> for COMMAND_ACK_DATA[src]

impl PartialEq<COMMAND_ACK_DATA> for COMMAND_ACK_DATA[src]

impl Serialize for COMMAND_ACK_DATA[src]

impl StructuralPartialEq for COMMAND_ACK_DATA[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.