Enum pueue_lib::task::TaskResult
source · [−]pub enum TaskResult {
Success,
Failed(i32),
FailedToSpawn(String),
Killed,
Errored,
DependencyFailed,
}Expand description
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
sourceimpl Clone for TaskResult
impl Clone for TaskResult
sourcefn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TaskResult
impl Debug for TaskResult
sourceimpl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
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 Display for TaskResult
impl Display for TaskResult
sourceimpl PartialEq<TaskResult> for TaskResult
impl PartialEq<TaskResult> for TaskResult
sourcefn eq(&self, other: &TaskResult) -> bool
fn eq(&self, other: &TaskResult) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TaskResult) -> bool
fn ne(&self, other: &TaskResult) -> bool
This method tests for !=.
sourceimpl Serialize for TaskResult
impl Serialize for TaskResult
impl Eq for TaskResult
impl StructuralEq for TaskResult
impl StructuralPartialEq for TaskResult
Auto Trait Implementations
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnwindSafe for TaskResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn 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 Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
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.