Struct winsafe::TOKEN_PRIVILEGES
source · #[repr(C)]pub struct TOKEN_PRIVILEGES { /* private fields */ }
Available on crate feature
kernel
only.Expand description
TOKEN_PRIVILEGES
struct.
Implementations§
source§impl TOKEN_PRIVILEGES
impl TOKEN_PRIVILEGES
sourcepub fn new(
privileges: &[LUID_AND_ATTRIBUTES]
) -> SysResult<TokenPrivilegesGuard>
pub fn new( privileges: &[LUID_AND_ATTRIBUTES] ) -> SysResult<TokenPrivilegesGuard>
Returns a dynamically allocated
TokenPrivilegesGuard
.
sourcepub const fn Privileges(&self) -> &[LUID_AND_ATTRIBUTES]
pub const fn Privileges(&self) -> &[LUID_AND_ATTRIBUTES]
Returns a constant slice over the Privileges
entries.
sourcepub fn Privileges_mut(&mut self) -> &mut [LUID_AND_ATTRIBUTES]
pub fn Privileges_mut(&mut self) -> &mut [LUID_AND_ATTRIBUTES]
Returns a mutable slice over the Privileges
entries.
Trait Implementations§
impl VariableSized for TOKEN_PRIVILEGES
Auto Trait Implementations§
impl Freeze for TOKEN_PRIVILEGES
impl RefUnwindSafe for TOKEN_PRIVILEGES
impl Send for TOKEN_PRIVILEGES
impl Sync for TOKEN_PRIVILEGES
impl Unpin for TOKEN_PRIVILEGES
impl UnwindSafe for TOKEN_PRIVILEGES
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