#[repr(C)]pub struct Trustee<'s> { /* private fields */ }
Expand description
An entity that can be added to an ACL.
Trustees can identify their subject (usually an account or a group) using a
string or a Sid
.
Implementations§
Source§impl<'s> Trustee<'s>
impl<'s> Trustee<'s>
Sourcepub fn as_mut_ptr(&mut self) -> *mut TRUSTEE_W
pub fn as_mut_ptr(&mut self) -> *mut TRUSTEE_W
Get a mutable pointer to the underlying buffer
Sourcepub unsafe fn allocate() -> Self
pub unsafe fn allocate() -> Self
Allocate and zero-initialize space for a Trustee
§Safety
The Trustee is zero-initialized, and should only be used in contexts where that is acceptable.
Sourcepub fn get_subject(&self) -> TrusteeSubject<'s>
pub fn get_subject(&self) -> TrusteeSubject<'s>
Get the TrusteeSubject
of a Trustee
§Panics
Panics if the trusteeForm
in the underlying object is an unrecognized
value. To get the value, use wrappers::GetTrusteeForm
directly.
Also panics if the pointer value is null.
Trait Implementations§
Auto Trait Implementations§
impl<'s> Freeze for Trustee<'s>
impl<'s> RefUnwindSafe for Trustee<'s>
impl<'s> !Send for Trustee<'s>
impl<'s> !Sync for Trustee<'s>
impl<'s> Unpin for Trustee<'s>
impl<'s> UnwindSafe for Trustee<'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