#[repr(i32)]pub enum CpuMode {
ModeUnknown = 0,
ModeKernel = 1,
ModeUser = 2,
ModeHypervisor = 3,
ModeGuestKernel = 4,
ModeGuestUser = 5,
}Variants§
ModeUnknown = 0
ModeKernel = 1
ModeUser = 2
ModeHypervisor = 3
The following values aren’t expected, but included for completeness:
ModeGuestKernel = 4
ModeGuestUser = 5
Implementations§
Trait Implementations§
Source§impl Ord for CpuMode
impl Ord for CpuMode
1.21.0 (const: unstable) · 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 PartialOrd for CpuMode
impl PartialOrd for CpuMode
impl Copy for CpuMode
impl Eq for CpuMode
impl StructuralPartialEq for CpuMode
Auto Trait Implementations§
impl Freeze for CpuMode
impl RefUnwindSafe for CpuMode
impl Send for CpuMode
impl Sync for CpuMode
impl Unpin for CpuMode
impl UnsafeUnpin for CpuMode
impl UnwindSafe for CpuMode
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