pub enum TaskState {
Running,
Ready,
Blocked,
Suspended,
Deleted,
Invalid,
}Expand description
Represents the current state of a task.
Variants§
Running
The task is currently utilizing the processor
Ready
The task is currently yielding but may run in the future
Blocked
The task is blocked. For example, it may be delaying or waiting on a mutex.
Tasks that are in this state will usually return to the task queue after a set timeout.
Suspended
The task is suspended. For example, it may be waiting on a mutex or semaphore.
Deleted
The task has been deleted using TaskHandle::abort.
Invalid
The task’s state is invalid somehow
Trait Implementations§
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