[][src]Enum pueue_lib::task::TaskResult

pub enum TaskResult {
    Success,
    Failed(i32),
    FailedToSpawn(String),
    Killed,
    Errored,
    DependencyFailed,
}

This enum represents the exit status of an actually spawned program. It's only used, once a task finished or failed in some kind of way.

Variants

Success

Task exited with 0

Failed(i32)

The task failed in some other kind of way (error code != 0)

FailedToSpawn(String)

The task couldn't be spawned. Probably a typo in the command

Killed

Task has been actively killed by either the user or the daemon on shutdown

Errored

Some kind of IO error. This should barely ever happen. Please check the daemon logs.

DependencyFailed

A dependency of the task failed.

Trait Implementations

impl Clone for TaskResult[src]

impl Debug for TaskResult[src]

impl<'de> Deserialize<'de> for TaskResult[src]

impl Display for TaskResult[src]

impl PartialEq<TaskResult> for TaskResult[src]

impl Serialize for TaskResult[src]

impl StructuralPartialEq for TaskResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<V, T> VZip<V> for T where
    V: MultiLane<T>,