Enum bollard_stubs::models::TaskState
source · #[repr(C)]
pub enum TaskState {
Show 15 variants
NEW,
ALLOCATED,
PENDING,
ASSIGNED,
ACCEPTED,
PREPARING,
READY,
STARTING,
RUNNING,
COMPLETE,
SHUTDOWN,
FAILED,
REJECTED,
REMOVE,
ORPHANED,
}
Expand description
Enumeration of values.
Since this enum’s variants do not hold data, we can easily define them them as #[repr(C)]
which helps with FFI.
Variants§
NEW
ALLOCATED
PENDING
ASSIGNED
ACCEPTED
PREPARING
READY
STARTING
RUNNING
COMPLETE
SHUTDOWN
FAILED
REJECTED
REMOVE
ORPHANED
Trait Implementations§
source§impl<'de> Deserialize<'de> for TaskState
impl<'de> Deserialize<'de> for TaskState
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for TaskState
impl Ord for TaskState
source§impl PartialEq<TaskState> for TaskState
impl PartialEq<TaskState> for TaskState
source§impl PartialOrd<TaskState> for TaskState
impl PartialOrd<TaskState> for TaskState
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more