Enum task_struct::RunState
source · pub enum RunState {
Initing,
Runnable,
Blocked,
Exited,
Reaped,
}Expand description
The set of possible runstates that a Task can be in.
Variants§
Initing
This task is in the midst of being initialized/spawned.
Runnable
This task is able to be scheduled in, but not necessarily currently running.
To check whether it is currently running, use Task::is_running().
Blocked
This task is blocked on something and is not able to be scheduled in.
Exited
This Task has exited and can no longer be run.
This covers both the case when a task ran to completion or was killed;
see ExitValue for more details.
Reaped
This Task had already exited, and now its ExitValue has been taken
(either by another task that joined it, or by the system).
Because a task’s exit value can only be taken once, a repaed task
is useless and will be cleaned up and removed from the system.
Trait Implementations§
source§impl PartialEq<RunState> for RunState
impl PartialEq<RunState> for RunState
impl Copy for RunState
impl Eq for RunState
impl StructuralEq for RunState
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnwindSafe for RunState
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