[][src]Enum cortex::helpers::TaskStatus

pub enum TaskStatus {
    TODO,
    NoProblem,
    Warning,
    Error,
    Fatal,
    Invalid,
    Blocked(i32),
    Queued(i32),
}

An enumeration of the expected task statuses

Variants

TODO

currently queued for processing

NoProblem

everything went smoothly

Warning

minor issues

Error

major issues

Fatal

critical/panic issues

Invalid

invalid task, fatal + discard from statistics

Blocked(i32)

currently blocked by dependencies

Queued(i32)

currently being processed (marker identifies batch)

Implementations

impl TaskStatus[src]

pub fn raw(&self) -> i32[src]

Maps the enumeration into the raw ints for the Task store

pub fn to_key(&self) -> String[src]

Maps the enumeration into the raw severity string for the Task store logs / frontend reports

pub fn to_table(&self) -> String[src]

Maps the enumeration into the Postgresql table name expected to hold messages for this status

pub fn from_raw(num: i32) -> Self[src]

Maps from the raw Task store value into the enumeration

pub fn from_key(key: &str) -> Option<Self>[src]

Maps from the raw severity log values into the enumeration

pub fn keys() -> Vec<String>[src]

Returns all raw severity strings as a vector

Trait Implementations

impl Clone for TaskStatus[src]

impl Debug for TaskStatus[src]

impl Eq for TaskStatus[src]

impl PartialEq<TaskStatus> for TaskStatus[src]

impl StructuralEq for TaskStatus[src]

impl StructuralPartialEq for TaskStatus[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,