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§
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
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
)