pub struct Privilege { /* private fields */ }
Expand description
Token privilege (immutable snapshot).
Implementations§
Source§impl Privilege
impl Privilege
Sourcepub fn attributes(&self) -> TOKEN_PRIVILEGES_ATTRIBUTES
pub fn attributes(&self) -> TOKEN_PRIVILEGES_ATTRIBUTES
Raw attributes bitmask (see SE_PRIVILEGE_*
constants).
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Is this privilege currently enabled?
Sourcepub fn new(name: &str, enable: bool) -> Result<Self>
pub fn new(name: &str, enable: bool) -> Result<Self>
Construct a privilege specification by name and desired enabled state.
name
is the textual privilege name (e.g. "SeDebugPrivilege"
).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Privilege
impl RefUnwindSafe for Privilege
impl Send for Privilege
impl Sync for Privilege
impl Unpin for Privilege
impl UnwindSafe for Privilege
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