#[repr(u8)]pub enum TaskState {
Running = 1,
Ready = 2,
Blocked = 3,
Exited = 4,
}
Expand description
The possible states of a task.
Variants§
Running = 1
Task is running on some CPU.
Ready = 2
Task is ready to run on some scheduler’s ready queue.
Blocked = 3
Task is blocked (in the wait queue or timer list),
and it has finished its scheduling process, it can be wake up by notify()
on any run queue safely.
Exited = 4
Task is exited and waiting for being dropped.
Trait Implementations§
impl Copy for TaskState
impl Eq for TaskState
impl StructuralPartialEq 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