#[repr(usize)]pub enum TaskStatus {
Pending = 0,
Running = 1,
Succeeded = 2,
Failed = 3,
Panicked = 4,
Cancelled = 5,
Dropped = 6,
}Expand description
Observable lifecycle status for a submitted task.
#[repr(usize)] assigns stable discriminants 0..TASK_STATUS_COUNT for internal
compact state-machine encoding.
Variants§
Pending = 0
The task has been accepted but has not started running.
Running = 1
The task has started running.
Succeeded = 2
The task completed successfully.
Failed = 3
The task returned its own error value.
Panicked = 4
The task panicked while running.
Cancelled = 5
The task was cancelled before producing a value.
Dropped = 6
The accepted runner-side completion endpoint was dropped before producing a value.
Implementations§
Trait Implementations§
Source§impl Clone for TaskStatus
impl Clone for TaskStatus
Source§fn clone(&self) -> TaskStatus
fn clone(&self) -> TaskStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PartialEq for TaskStatus
impl PartialEq for TaskStatus
Source§fn eq(&self, other: &TaskStatus) -> bool
fn eq(&self, other: &TaskStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy 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 UnsafeUnpin 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