pub enum TranslatePrivilegeCheck {
None,
User,
Supervisor,
Both,
CurrentPrivilegeLevel,
}
Expand description
The type of privilege check to perform.
Variants§
None
No privilege checks.
User
Validate user-mode access.
Supervisor
Validate supervisor access.
Both
Validate both supervisor and user-mode access.
CurrentPrivilegeLevel
Validate according to the current privilege level.
Trait Implementations§
Source§impl Clone for TranslatePrivilegeCheck
impl Clone for TranslatePrivilegeCheck
Source§fn clone(&self) -> TranslatePrivilegeCheck
fn clone(&self) -> TranslatePrivilegeCheck
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TranslatePrivilegeCheck
impl Debug for TranslatePrivilegeCheck
impl Copy for TranslatePrivilegeCheck
Auto Trait Implementations§
impl Freeze for TranslatePrivilegeCheck
impl RefUnwindSafe for TranslatePrivilegeCheck
impl Send for TranslatePrivilegeCheck
impl Sync for TranslatePrivilegeCheck
impl Unpin for TranslatePrivilegeCheck
impl UnwindSafe for TranslatePrivilegeCheck
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