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§
source§impl Clone for TaskStatus
impl Clone for TaskStatus
source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
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 TaskStatus
impl Debug for TaskStatus
source§impl<'de> Deserialize<'de> for TaskStatus
impl<'de> Deserialize<'de> for TaskStatus
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 TaskStatus
impl Display for TaskStatus
source§impl PartialEq for TaskStatus
impl PartialEq for TaskStatus
source§fn 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 ==
.source§impl Serialize for TaskStatus
impl Serialize for TaskStatus
impl Eq for TaskStatus
impl StructuralPartialEq for TaskStatus
Auto Trait Implementations§
impl Freeze for TaskStatus
impl RefUnwindSafe for TaskStatus
impl Send for TaskStatus
impl Sync for TaskStatus
impl Unpin for TaskStatus
impl UnwindSafe for TaskStatus
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 Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.