pub enum TaskStatus {
Submitted,
Running,
Succeeded,
Failed,
Panicked,
Cancelled,
}Expand description
Status of a task managed by TaskExecutionService.
The status describes service-level progress, not the typed task result
stored in TaskHandle. The handle remains the source of truth for the
task’s success value or error value.
Variants§
Submitted
The task was accepted but has not started running.
Running
A worker has started running the task.
Succeeded
The task completed successfully.
Failed
The task ran and returned its own error value.
Panicked
The task panicked while running.
Cancelled
The task was cancelled before it started.
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