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
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Mutably borrows from an owned value. Read more