#[repr(C)]pub enum TaskStatusType {
INPROGRESS = 0,
FAILED = 1,
SUCCESS = 2,
DENIED = 3,
PENDING_WHITELIST = 4,
}
Expand description
Status string for a task
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§
Trait Implementations§
Source§impl Clone for TaskStatusType
impl Clone for TaskStatusType
Source§fn clone(&self) -> TaskStatusType
fn clone(&self) -> TaskStatusType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TaskStatusType
impl Debug for TaskStatusType
Source§impl<'de> Deserialize<'de> for TaskStatusType
impl<'de> Deserialize<'de> for TaskStatusType
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 Display for TaskStatusType
impl Display for TaskStatusType
Source§impl FromStr for TaskStatusType
impl FromStr for TaskStatusType
Source§impl Ord for TaskStatusType
impl Ord for TaskStatusType
Source§fn cmp(&self, other: &TaskStatusType) -> Ordering
fn cmp(&self, other: &TaskStatusType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TaskStatusType
impl PartialEq for TaskStatusType
Source§impl PartialOrd for TaskStatusType
impl PartialOrd for TaskStatusType
Source§impl Serialize for TaskStatusType
impl Serialize for TaskStatusType
impl Copy for TaskStatusType
impl Eq for TaskStatusType
impl StructuralPartialEq for TaskStatusType
Auto Trait Implementations§
impl Freeze for TaskStatusType
impl RefUnwindSafe for TaskStatusType
impl Send for TaskStatusType
impl Sync for TaskStatusType
impl Unpin for TaskStatusType
impl UnwindSafe for TaskStatusType
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