Struct windows_permissions::Trustee [−][src]
#[repr(C)]pub struct Trustee<'s> { /* fields omitted */ }
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
impl<'s> Trustee<'s>
[src]
pub fn as_ptr(&self) -> *const TRUSTEE_W
[src]
Get a pointer to the underlying buffer
pub fn as_mut_ptr(&mut self) -> *mut TRUSTEE_W
[src]
Get a mutable pointer to the underlying buffer
pub unsafe fn allocate() -> Self
[src]
Allocate space for a Trustee
pub fn get_subject(&self) -> TrusteeSubject<'s>
[src]
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
impl<'s> Debug for Trustee<'s>
[src]
impl From<&'_ OsStr> for Trustee<'static>
[src]
impl<'s> From<&'s Sid> for Trustee<'s>
[src]
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,