pub enum TrusteeSubject<'s> {
Name(&'s [u16]),
Sid(&'s Sid),
ObjectsAndSid(*const c_void),
ObjectsAndName(*const c_void),
Bad,
}
Expand description
The contents of a Trustee.
Variants§
Name(&'s [u16])
This trustee holds a zero-terminated WTF-16-encoded name. This can be
converted into an OsString
using
utilities::os_from_buf
.
Sid(&'s Sid)
This trustee holds a reference to the Sid it was created with.
ObjectsAndSid(*const c_void)
An opaque pointer to objects and SID.
ObjectsAndName(*const c_void)
An opaque pointer to objects and name.
Bad
Bad
means that trusteeForm
is explicitly set to TRUSTEE_BAD_FORM
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for TrusteeSubject<'s>
impl<'s> RefUnwindSafe for TrusteeSubject<'s>
impl<'s> !Send for TrusteeSubject<'s>
impl<'s> !Sync for TrusteeSubject<'s>
impl<'s> Unpin for TrusteeSubject<'s>
impl<'s> UnwindSafe for TrusteeSubject<'s>
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