#[repr(u8)]pub enum Cpustatus {
Show 16 variants
WAITING = 0,
RUNNING = 1,
SLEEPING = 2,
INTERRUPT = 3,
EXCEPTION_TRAP = 4,
ONGOING_RESET = 5,
HALTED = 6,
_RESERVED_7 = 7,
_RESERVED_8 = 8,
_RESERVED_9 = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
_RESERVED_c = 12,
_RESERVED_d = 13,
ERROR = 14,
_RESERVED_f = 15,
}Variants§
WAITING = 0
WAITING (not yet started)
RUNNING = 1
RUNNING
SLEEPING = 2
SLEEPING
INTERRUPT = 3
INTERRUPT (in handler)
EXCEPTION_TRAP = 4
EXCEPTION/TRAP (in handler)
ONGOING_RESET = 5
ONGOING_RESET
HALTED = 6
HALTED
_RESERVED_7 = 7
_RESERVED_8 = 8
_RESERVED_9 = 9
_RESERVED_a = 10
_RESERVED_b = 11
_RESERVED_c = 12
_RESERVED_d = 13
ERROR = 14
ERROR (lockup, needs debugging or reset)
_RESERVED_f = 15
Implementations§
Trait Implementations§
Source§impl Ord for Cpustatus
impl Ord for Cpustatus
Source§impl PartialOrd for Cpustatus
impl PartialOrd for Cpustatus
impl Copy for Cpustatus
impl Eq for Cpustatus
impl StructuralPartialEq for Cpustatus
Auto Trait Implementations§
impl Freeze for Cpustatus
impl RefUnwindSafe for Cpustatus
impl Send for Cpustatus
impl Sync for Cpustatus
impl Unpin for Cpustatus
impl UnwindSafe for Cpustatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)