Enum pueue_lib::task::TaskStatus
source · [−]pub enum TaskStatus {
Queued,
Stashed {
enqueue_at: Option<DateTime<Local>>,
},
Running,
Paused,
Done(TaskResult),
Locked,
}Expand description
This enum represents the status of the internal task handling of Pueue. They basically represent the internal task life-cycle.
Variants
Queued
The task is queued and waiting for a free slot
Stashed
The task has been manually stashed. It won’t be executed until it’s manually enqueued
Running
The task is started and running
Paused
A previously running task has been paused
Done(TaskResult)
Task finished. The actual result of the task is handled by the TaskResult enum.
Locked
Used while the command of a task is edited (to prevent starting the task)
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.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 TaskStatus
impl Debug for TaskStatus
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 Display for TaskStatus
impl Display for TaskStatus
sourceimpl PartialEq<TaskStatus> for TaskStatus
impl PartialEq<TaskStatus> for TaskStatus
sourcefn eq(&self, other: &TaskStatus) -> bool
fn eq(&self, other: &TaskStatus) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TaskStatus) -> bool
fn ne(&self, other: &TaskStatus) -> bool
This method tests for !=.
sourceimpl Serialize for TaskStatus
impl Serialize 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
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.