Skip to main content

Acl

Struct Acl 

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

An immutable borrowed native Windows access-control list (ACL).

Implementations§

Source§

impl Acl

Source

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

Parses and validates a complete native ACL packet.

Source

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

Returns the exact native ACL packet.

Source

pub const fn revision(&self) -> AclRevision

Returns the ACL revision.

Source

pub fn size(&self) -> u16

Returns the declared ACL size.

Source

pub fn ace_count(&self) -> u16

Returns the number of ACEs declared by the ACL.

Source

pub fn aces(&self) -> Aces<'_>

Iterates over the validated ACE packets.

Trait Implementations§

Source§

impl AsRef<Acl> for Acl

Source§

fn as_ref(&self) -> &Acl

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

impl AsRef<Acl> for AclBuf

Source§

fn as_ref(&self) -> &Acl

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

impl Borrow<Acl> for AclBuf

Source§

fn borrow(&self) -> &Acl

Immutably borrows from an owned value. Read more
Source§

impl Debug for Acl

Source§

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

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

impl Eq for Acl

Source§

impl Hash for Acl

Source§

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

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

impl PartialEq for Acl

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 Acl

Source§

type Owned = AclBuf

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 Acl

§

impl Freeze for Acl

§

impl RefUnwindSafe for Acl

§

impl Send for Acl

§

impl Sync for Acl

§

impl Unpin for Acl

§

impl UnsafeUnpin for Acl

§

impl UnwindSafe for Acl

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