pub struct Priv {
pub user: bool,
pub kernel: bool,
pub hv: bool,
pub host: bool,
pub guest: bool,
pub idle: bool,
}
Expand description
Privilege levels.
Fields§
§user: bool
User space.
kernel: bool
Kernel space.
hv: bool
Hypervisor.
host: bool
Host mode.
guest: bool
Guest mode.
idle: bool
Idle task.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Priv
impl RefUnwindSafe for Priv
impl Send for Priv
impl Sync for Priv
impl Unpin for Priv
impl UnwindSafe for Priv
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