pub enum TaskState {
Running,
Ready,
Blocked,
Suspended,
Deleted,
}Expand description
Represents the state of a Task.
Variants§
Running
The task is actively executing.
Ready
The task exists and is available to run, but is not currently running.
Blocked
The task is delayed or blocked by a mutex, semaphore or I/O operation.
Suspended
The task is suspended.
Deleted
The task has been deleted.
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