pub struct CommandCancel {
pub target_system: u8,
pub target_component: u8,
pub command: MavCmd,
}
Expand description
MAVLink COMMAND_CANCEL
message.
The minimum supported MAVLink version is MAVLink 1
.
§Description
Cancel a long running command. The target system should respond with a COMMAND_ACK to the original command with result=MAV_RESULT_CANCELLED if the long running process was cancelled. If it has already completed, the cancel action can be ignored. The cancel action can be retried until some sort of acknowledgement to the original command has been received. The command microservice is documented at https://mavlink.io/en/services/command.html
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload>
for
CommandCancel
(encoding) and [IntoPayload
] (decoding) traits.
These traits are implemented by Message
proc macro.
Fields§
§target_system: u8
MAVLink field target_system
.
System executing long running command. Should not be broadcast (0).
target_component: u8
MAVLink field target_component
.
Component executing long running command.
command: MavCmd
MAVLink field command
.
Command ID (of command to cancel).
Implementations§
Source§impl CommandCancel
impl CommandCancel
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID
.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for CommandCancel
impl Clone for CommandCancel
Source§fn clone(&self) -> CommandCancel
fn clone(&self) -> CommandCancel
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CommandCancel
impl Debug for CommandCancel
Source§impl Default for CommandCancel
impl Default for CommandCancel
Source§fn default() -> CommandCancel
fn default() -> CommandCancel
Source§impl<'de> Deserialize<'de> for CommandCancel
impl<'de> Deserialize<'de> for CommandCancel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandCancel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandCancel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<CommandCancel> for ArmAuthMsrv
impl From<CommandCancel> for ArmAuthMsrv
Source§fn from(value: CommandCancel) -> ArmAuthMsrv
fn from(value: CommandCancel) -> ArmAuthMsrv
Source§impl From<CommandCancel> for CommandCancel
impl From<CommandCancel> for CommandCancel
Source§fn from(value: CommandCancel) -> CommandCancel
fn from(value: CommandCancel) -> CommandCancel
Source§impl IntoPayload for CommandCancel
impl IntoPayload for CommandCancel
Source§impl MessageSpec for CommandCancel
impl MessageSpec for CommandCancel
Source§impl MessageSpecStatic for CommandCancel
impl MessageSpecStatic for CommandCancel
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID
.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for CommandCancel
impl NamedType for CommandCancel
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for CommandCancel
impl PartialEq for CommandCancel
Source§impl Serialize for CommandCancel
impl Serialize for CommandCancel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for CommandCancel
impl TryFrom<&Payload> for CommandCancel
Source§impl TryFrom<CommandCancel> for CommandCancel
impl TryFrom<CommandCancel> for CommandCancel
Source§fn try_from(
value: CommandCancel,
) -> Result<CommandCancel, <CommandCancel as TryFrom<CommandCancel>>::Error>
fn try_from( value: CommandCancel, ) -> Result<CommandCancel, <CommandCancel as TryFrom<CommandCancel>>::Error>
Source§impl Type for CommandCancel
impl Type for CommandCancel
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition
will be put into the type map.