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§
source§impl Clone for TaskResult
impl Clone for TaskResult
source§fn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
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 TaskResult
impl Debug for TaskResult
source§impl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
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 TaskResult
impl Display for TaskResult
source§impl PartialEq<TaskResult> for TaskResult
impl PartialEq<TaskResult> for TaskResult
source§fn 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 ==.source§impl 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§
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
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.