#[repr(u8)]pub enum ThreadStateFlags {
DUMMY = 1,
PENDING = 2,
SLEEPING = 4,
DEAD = 8,
SUSPENDED = 16,
ABORTING = 32,
SUSPENDING = 64,
QUEUED = 128,
}Expand description
Flags inside of TaskStatisticsEntry::state
Variants§
DUMMY = 1
Not a real thread
PENDING = 2
Thread is waiting on an object
SLEEPING = 4
Thread is sleeping
DEAD = 8
Thread has terminated
SUSPENDED = 16
Thread is suspended
ABORTING = 32
Thread is in the process of aborting
SUSPENDING = 64
Thread is in the process of suspending
QUEUED = 128
Thread is present in the ready queue
Implementations§
Source§impl ThreadStateFlags
impl ThreadStateFlags
Sourcepub fn pretty_print(thread_state: u8) -> String
pub fn pretty_print(thread_state: u8) -> String
Converts the thread state to a human readable string
Trait Implementations§
Source§impl AsRef<str> for ThreadStateFlags
impl AsRef<str> for ThreadStateFlags
Source§impl Clone for ThreadStateFlags
impl Clone for ThreadStateFlags
Source§fn clone(&self) -> ThreadStateFlags
fn clone(&self) -> ThreadStateFlags
Returns a duplicate 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 ThreadStateFlags
impl Debug for ThreadStateFlags
Source§impl Display for ThreadStateFlags
impl Display for ThreadStateFlags
Source§impl IntoEnumIterator for ThreadStateFlags
impl IntoEnumIterator for ThreadStateFlags
type Iterator = ThreadStateFlagsIter
fn iter() -> ThreadStateFlagsIter ⓘ
Source§impl PartialEq for ThreadStateFlags
impl PartialEq for ThreadStateFlags
impl Copy for ThreadStateFlags
impl Eq for ThreadStateFlags
impl StructuralPartialEq for ThreadStateFlags
Auto Trait Implementations§
impl Freeze for ThreadStateFlags
impl RefUnwindSafe for ThreadStateFlags
impl Send for ThreadStateFlags
impl Sync for ThreadStateFlags
impl Unpin for ThreadStateFlags
impl UnwindSafe for ThreadStateFlags
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