Skip to main content

Ace

Struct Ace 

Source
pub struct Ace(/* private fields */);
Expand description

An immutable borrowed native Windows access-control entry (ACE).

Implementations§

Source§

impl Ace

Source

pub fn from_bytes(bytes: &[u8]) -> Result<&Self, AceError>

Parses and validates one complete native ACE packet.

Source

pub const fn as_bytes(&self) -> &[u8]

Returns the exact native ACE packet.

Source

pub const fn type_code(&self) -> u8

Returns the native ACE type code.

Source

pub fn ace_type(&self) -> AceType

Returns the classified ACE type.

Source

pub const fn flags(&self) -> AceFlags

Returns the native ACE flags byte.

Source

pub fn size(&self) -> u16

Returns the declared ACE size.

Source

pub fn mask(&self) -> Option<AccessMask>

Returns the access mask for ACE layouts that contain one.

Source

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

Returns the trustee SID for ACE layouts that contain one.

Source

pub fn object_flags(&self) -> Option<ObjectAceFlags>

Returns object-specific flags for object ACE layouts.

Source

pub fn object_type(&self) -> Option<Guid>

Returns the optional object-type GUID for object ACE layouts.

Source

pub fn inherited_object_type(&self) -> Option<Guid>

Returns the optional inherited-object-type GUID for object ACE layouts.

Source

pub fn application_data(&self) -> Option<&[u8]>

Returns trailing application data for parsed SID-bearing layouts.

Trait Implementations§

Source§

impl AsRef<Ace> for Ace

Source§

fn as_ref(&self) -> &Ace

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Ace> for AceBuf

Source§

fn as_ref(&self) -> &Ace

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<Ace> for AceBuf

Source§

fn borrow(&self) -> &Ace

Immutably borrows from an owned value. Read more
Source§

impl Debug for Ace

Source§

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

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

impl Eq for Ace

Source§

impl Hash for Ace

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl PartialEq for Ace

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl ToOwned for Ace

Source§

type Owned = AceBuf

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> Self::Owned

Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§

fn clone_into(&self, target: &mut Self::Owned)

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations§

§

impl !Sized for Ace

§

impl Freeze for Ace

§

impl RefUnwindSafe for Ace

§

impl Send for Ace

§

impl Sync for Ace

§

impl Unpin for Ace

§

impl UnsafeUnpin 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