Enum pueue_lib::task::TaskStatus [−][src]
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
The task is queued and waiting for a free slot
The task has been manually stashed. It won’t be executed until it’s manually enqueued
The task is started and running
A previously running task has been paused
Done(TaskResult)Task finished. The actual result of the task is handled by the TaskResult enum.
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 TaskStatusimpl Send for TaskStatusimpl Sync for TaskStatusimpl Unpin for TaskStatusimpl UnwindSafe for TaskStatusBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V