Ace

Struct Ace 

Source
#[repr(C)]
pub struct Ace { /* private fields */ }
Expand description

An access control list.

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

Implementations§

Source§

impl Ace

Source

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

Get a reference from an ACE pointer.

§Safety
  • 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
Source

pub fn ace_type(&self) -> AceType

Determine the type of ACE

Source

pub fn flags(&self) -> AceFlags

Get the option flags set on the ACE

Source

pub fn mask(&self) -> AccessRights

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

Source

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

Get the SID if it is available for this ACE type

Trait Implementations§

Source§

impl Debug for Ace

Source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for Ace

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

§

impl Freeze for Ace

§

impl RefUnwindSafe for Ace

§

impl Send for Ace

§

impl Sync for Ace

§

impl Unpin for Ace

§

impl UnwindSafe for Ace

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.