[][src]Struct exacl::AclEntry

pub struct AclEntry {
    pub kind: AclEntryKind,
    pub name: String,
    pub perms: Perm,
    pub flags: Flag,
    pub allow: bool,
}

ACL entry with allow/deny semantics.

ACL entries are ordered so sorting will automatically put the ACL in canonical order.

Fields

kind: AclEntryKind

Kind of entry (User, Group, Other, Mask, or Unknown).

name: String

Name of the principal being given access. You can use a user/group name or decimal uid/gid. On macOS you can use a UUID.

perms: Perm

Permission bits for the entry.

flags: Flag

Flags indicating whether an entry is inherited, etc.

allow: bool

True if entry is allowed; false means deny. Linux only supports allow=true.

Implementations

impl AclEntry[src]

#[must_use]pub fn allow_user<F>(name: &str, perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct an ALLOW access control entry for a user.

#[must_use]pub fn allow_group<F>(name: &str, perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct an ALLOW access control entry for a group.

#[must_use]pub fn allow_mask<F>(perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct an ALLOW access control entry for mask.

#[must_use]pub fn allow_other<F>(perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct an ALLOW access control entry for other.

#[must_use]pub fn deny_user<F>(name: &str, perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct a DENY access control entry for a user.

#[must_use]pub fn deny_group<F>(name: &str, perms: Perm, flags: F) -> AclEntry where
    F: Into<Option<Flag>>, 
[src]

Construct a DENY access control entry for a group.

Trait Implementations

impl Clone for AclEntry[src]

impl Debug for AclEntry[src]

impl<'de> Deserialize<'de> for AclEntry[src]

impl Display for AclEntry[src]

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

Format an AclEntry 5-tuple: ::::

impl Eq for AclEntry[src]

impl FromStr for AclEntry[src]

type Err = Error

The associated error which can be returned from parsing.

impl Ord for AclEntry[src]

impl PartialEq<AclEntry> for AclEntry[src]

impl PartialOrd<AclEntry> for AclEntry[src]

impl Serialize for AclEntry[src]

impl StructuralEq for AclEntry[src]

impl StructuralPartialEq for AclEntry[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.