pub struct SidGuard { /* private fields */ }
Available on crate feature
kernel
only.Expand description
RAII implementation for SID
, returned by
CopySid
,
CreateWellKnownSid
,
GetWindowsAccountDomainSid
and
LookupAccountName
, which automatically frees
the underlying memory block when the object goes out of scope.
Implementations§
Methods from Deref<Target = SID>§
sourcepub fn SubAuthorityCount(&self) -> u8
pub fn SubAuthorityCount(&self) -> u8
Returns the SubAuthorityCount
field.
sourcepub fn SubAuthority(&self) -> &[RID]
pub fn SubAuthority(&self) -> &[RID]
Returns the SubAuthority
field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SidGuard
impl RefUnwindSafe for SidGuard
impl Send for SidGuard
impl !Sync for SidGuard
impl Unpin for SidGuard
impl UnwindSafe for SidGuard
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