pub enum PrivilegedExecutionContext {
Regular,
Elevated,
}Variants§
Implementations§
Source§impl PrivilegedExecutionContext
impl PrivilegedExecutionContext
pub fn current() -> PrivilegedExecutionContext
pub fn is_elevated(&self) -> bool
Trait Implementations§
Source§impl Clone for PrivilegedExecutionContext
impl Clone for PrivilegedExecutionContext
Source§fn clone(&self) -> PrivilegedExecutionContext
fn clone(&self) -> PrivilegedExecutionContext
Returns a duplicate 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 PrivilegedExecutionContext
impl Debug for PrivilegedExecutionContext
impl Copy for PrivilegedExecutionContext
Auto Trait Implementations§
impl Freeze for PrivilegedExecutionContext
impl RefUnwindSafe for PrivilegedExecutionContext
impl Send for PrivilegedExecutionContext
impl Sync for PrivilegedExecutionContext
impl Unpin for PrivilegedExecutionContext
impl UnsafeUnpin for PrivilegedExecutionContext
impl UnwindSafe for PrivilegedExecutionContext
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