#[repr(u64)]pub enum TaskState {
Ready = 0,
Waiting = 1,
Running = 2,
Complete = 3,
Cancelled = 4,
}
Expand description
The state of a task.
Variants§
Ready = 0
The task is ready to run.
Waiting = 1
The task is waiting on some condition.
Running = 2
The task is running on an executor.
Complete = 3
The task has completed.
Cancelled = 4
The task was cancelled before it completed.
Trait Implementations§
impl Copy for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnwindSafe for TaskState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)