Struct windows_permissions::Ace[][src]

#[repr(C)]
pub struct Ace { /* fields omitted */ }

An access control list.

See MSDN for layout details, or ACCESS_ALLOWED_ACE on MSDN for an example.

Implementations

impl Ace[src]

pub unsafe fn ref_from_nonnull<'s>(ptr: NonNull<ACE_HEADER>) -> &'s Self[src]

Get a reference from an ACE pointer.

Requirements

  • ptr must point to a valid ACE structure
  • The ACE header must be followed by the correct ACE structure
  • The entire structure must remain alive at least as long as 's

pub fn ace_type(&self) -> AceType[src]

Determine the type of ACE

pub fn flags(&self) -> AceFlags[src]

Get the option flags set on the ACE

pub fn mask(&self) -> AccessRights[src]

Get the access mask if it is available for this ACE type

pub fn sid(&self) -> Option<&Sid>[src]

Get the SID if it is available for this ACE type

Trait Implementations

impl Debug for Ace[src]

impl Drop for Ace[src]

Auto Trait Implementations

impl RefUnwindSafe for Ace

impl Send for Ace

impl Sync for Ace

impl Unpin for Ace

impl UnwindSafe for Ace

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.