Enum twizzler_abi::thread::ExecutionState
source · #[repr(u8)]pub enum ExecutionState {
Running,
Sleeping,
Suspended,
Exited,
}
Expand description
Possible execution states for a thread. The transitions available are: +————+ +———–+ +———––+ | Sleeping +<—>+ Running +<—>+ Suspended | +————+ +—–+—–+ +———––+ | | +–––––+ +–>+ Exited | +–––––+ The kernel will not transition a thread out of the exited state.
Variants§
Running
The thread is running or waiting to be scheduled on a CPU.
Sleeping
The thread is sleeping, waiting for a condition in-kernel.
Suspended
The thread is suspended, and will not resume until manually transitioned back to running.
Exited
The thread has terminated, and will never run again.
Trait Implementations§
source§impl Clone for ExecutionState
impl Clone for ExecutionState
source§fn clone(&self) -> ExecutionState
fn clone(&self) -> ExecutionState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecutionState
impl Debug for ExecutionState
source§impl Hash for ExecutionState
impl Hash for ExecutionState
source§impl Ord for ExecutionState
impl Ord for ExecutionState
source§fn cmp(&self, other: &ExecutionState) -> Ordering
fn cmp(&self, other: &ExecutionState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ExecutionState> for ExecutionState
impl PartialEq<ExecutionState> for ExecutionState
source§fn eq(&self, other: &ExecutionState) -> bool
fn eq(&self, other: &ExecutionState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExecutionState> for ExecutionState
impl PartialOrd<ExecutionState> for ExecutionState
source§fn partial_cmp(&self, other: &ExecutionState) -> Option<Ordering>
fn partial_cmp(&self, other: &ExecutionState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ExecutionState
impl Eq for ExecutionState
impl StructuralEq for ExecutionState
impl StructuralPartialEq for ExecutionState
Auto Trait Implementations§
impl ObjSafe for ExecutionState
impl RefUnwindSafe for ExecutionState
impl Send for ExecutionState
impl Sync for ExecutionState
impl Unpin for ExecutionState
impl UnwindSafe for ExecutionState
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