pub struct MacosAce { /* private fields */ }Expand description
A portable macOS extended ACL entry.
macOS resolves every principal (owning user, owning group, well-known
accounts, or an arbitrary user/group) to a guid_t before it reaches the
kernel ACL, so unlike Nfs4Ace’s qualifier,
there is no separate enum here: the qualifier is simply the UUID.
Implementations§
Source§impl MacosAce
impl MacosAce
Sourcepub const fn new(
ace_type: MacosAceType,
qualifier: Uuid,
mask: MacosAceMask,
flags: MacosAceFlags,
) -> Self
pub const fn new( ace_type: MacosAceType, qualifier: Uuid, mask: MacosAceMask, flags: MacosAceFlags, ) -> Self
Creates a macOS ACL entry.
Sourcepub const fn ace_type(self) -> MacosAceType
pub const fn ace_type(self) -> MacosAceType
Returns whether this entry allows or denies access.
Sourcepub const fn mask(self) -> MacosAceMask
pub const fn mask(self) -> MacosAceMask
Returns the access-rights mask.
Sourcepub const fn flags(self) -> MacosAceFlags
pub const fn flags(self) -> MacosAceFlags
Returns the inheritance flags.
Trait Implementations§
impl Copy for MacosAce
Source§impl<'de> Deserialize<'de> for MacosAce
impl<'de> Deserialize<'de> for MacosAce
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for MacosAce
impl StructuralPartialEq for MacosAce
Auto Trait Implementations§
impl Freeze for MacosAce
impl RefUnwindSafe for MacosAce
impl Send for MacosAce
impl Sync for MacosAce
impl Unpin for MacosAce
impl UnsafeUnpin for MacosAce
impl UnwindSafe for MacosAce
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more