fundamentum_sdk_mqtt/models/command_status.rs
1//! `CommandStatus` module
2//!
3use serde::{Deserialize, Serialize};
4
5/// `CommandStatus` definition
6#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Hash)]
7#[serde(rename_all = "lowercase")]
8pub enum CommandStatus {
9 /// The command takes some time to complete and is ongoing.
10 /// Another status shall be sent to signal its completion.
11 Ongoing,
12 /// The command completed successfully.
13 Success,
14 /// The command failed to complete.
15 Failure,
16 /// The command must be resent by the cloud (e.g.: expired link).
17 Retry,
18}