#[repr(i32)]
pub enum TaskStatus {
Created,
DataAssigned,
Approved,
Staged,
Running,
Finished,
Canceled,
Failed,
}
Variants
Created
DataAssigned
Approved
Staged
Running
Finished
Canceled
Failed
Implementations
sourceimpl TaskStatus
impl TaskStatus
sourcepub fn from_i32(value: i32) -> Option<TaskStatus>
pub fn from_i32(value: i32) -> Option<TaskStatus>
Converts an i32
to a TaskStatus
, or None
if value
is not a valid variant.
Trait Implementations
sourceimpl Clone for TaskStatus
impl Clone for TaskStatus
sourcefn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TaskStatus
impl Debug for TaskStatus
sourceimpl Default for TaskStatus
impl Default for TaskStatus
sourcefn default() -> TaskStatus
fn default() -> TaskStatus
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TaskStatus
impl<'de> Deserialize<'de> for TaskStatus
sourcefn 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
sourceimpl From<TaskStatus> for i32
impl From<TaskStatus> for i32
sourcefn from(value: TaskStatus) -> i32
fn from(value: TaskStatus) -> i32
Converts to this type from the input type.
sourceimpl Hash for TaskStatus
impl Hash for TaskStatus
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl Ord for TaskStatus
impl Ord for TaskStatus
sourceimpl PartialEq<TaskStatus> for TaskStatus
impl PartialEq<TaskStatus> for TaskStatus
sourcefn eq(&self, other: &TaskStatus) -> bool
fn eq(&self, other: &TaskStatus) -> bool
sourceimpl PartialOrd<TaskStatus> for TaskStatus
impl PartialOrd<TaskStatus> for TaskStatus
sourcefn partial_cmp(&self, other: &TaskStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &TaskStatus) -> Option<Ordering>
1.0.0const fn lt(&self, other: &Rhs) -> bool
const fn lt(&self, other: &Rhs) -> bool
1.0.0const fn le(&self, other: &Rhs) -> bool
const 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 more1.0.0const fn gt(&self, other: &Rhs) -> bool
const fn gt(&self, other: &Rhs) -> bool
sourceimpl Serialize for TaskStatus
impl Serialize for TaskStatus
impl Copy for TaskStatus
impl Eq for TaskStatus
impl StructuralEq for TaskStatus
impl StructuralPartialEq for TaskStatus
Auto Trait Implementations
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnwindSafe for TaskStatus
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more