pub enum Npriv {
Privileged,
Unprivileged,
}
Expand description
Thread mode privilege level
Variants§
Implementations§
source§impl Npriv
impl Npriv
sourcepub fn is_privileged(self) -> bool
pub fn is_privileged(self) -> bool
Is in privileged thread mode?
sourcepub fn is_unprivileged(self) -> bool
pub fn is_unprivileged(self) -> bool
Is in unprivileged thread mode?
Trait Implementations§
source§impl PartialEq for Npriv
impl PartialEq for Npriv
impl Copy for Npriv
impl Eq for Npriv
impl StructuralPartialEq for Npriv
Auto Trait Implementations§
impl Freeze for Npriv
impl RefUnwindSafe for Npriv
impl Send for Npriv
impl Sync for Npriv
impl Unpin for Npriv
impl UnwindSafe for Npriv
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