#[repr(C)]pub enum TaskState {
Show 15 variants
NEW = 0,
ALLOCATED = 1,
PENDING = 2,
ASSIGNED = 3,
ACCEPTED = 4,
PREPARING = 5,
READY = 6,
STARTING = 7,
RUNNING = 8,
COMPLETE = 9,
SHUTDOWN = 10,
FAILED = 11,
REJECTED = 12,
REMOVE = 13,
ORPHANED = 14,
}
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 = 0
ALLOCATED = 1
PENDING = 2
ASSIGNED = 3
ACCEPTED = 4
PREPARING = 5
READY = 6
STARTING = 7
RUNNING = 8
COMPLETE = 9
SHUTDOWN = 10
FAILED = 11
REJECTED = 12
REMOVE = 13
ORPHANED = 14
Trait Implementations§
source§impl<'de> Deserialize<'de> for TaskState
impl<'de> Deserialize<'de> for TaskState
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskState, <__D as Deserializer<'de>>::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 PartialOrd for TaskState
impl PartialOrd for TaskState
source§impl Serialize for TaskState
impl Serialize for TaskState
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,
Serialize this value into the given Serde serializer. Read more
impl Copy for TaskState
impl Eq for TaskState
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnwindSafe for TaskState
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.