pub enum TaskState {
Ready,
Running,
Terminated,
}Expand description
Defintion of task state
Variants§
Ready
The init state, which means the task is ready to run by CPU.
Running
Sign the process is currently running.
Terminated
If the process has completed running, sign it as terminated.
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