[−][src]Struct exacl::AclEntry
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]
F: Into<Option<Flag>>,
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]
F: Into<Option<Flag>>,
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]
F: Into<Option<Flag>>,
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]
F: Into<Option<Flag>>,
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]
F: Into<Option<Flag>>,
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]
F: Into<Option<Flag>>,
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for AclEntry
[src]
impl Eq for AclEntry
[src]
impl FromStr for AclEntry
[src]
type Err = Error
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Ord for AclEntry
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<AclEntry> for AclEntry
[src]
impl PartialOrd<AclEntry> for AclEntry
[src]
pub fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for AclEntry
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for AclEntry
[src]
impl StructuralPartialEq for AclEntry
[src]
Auto Trait Implementations
impl RefUnwindSafe for AclEntry
[src]
impl Send for AclEntry
[src]
impl Sync for AclEntry
[src]
impl Unpin for AclEntry
[src]
impl UnwindSafe for AclEntry
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,