pub struct Nfs4Ace { /* private fields */ }Expand description
A portable NFSv4 ACL entry.
Implementations§
Source§impl Nfs4Ace
impl Nfs4Ace
Sourcepub const fn new(
ace_type: Nfs4AceType,
qualifier: Nfs4AceQualifier,
mask: Nfs4AceMask,
flags: Nfs4AceFlags,
) -> Self
pub const fn new( ace_type: Nfs4AceType, qualifier: Nfs4AceQualifier, mask: Nfs4AceMask, flags: Nfs4AceFlags, ) -> Self
Creates an NFSv4 ACL entry.
Sourcepub const fn ace_type(self) -> Nfs4AceType
pub const fn ace_type(self) -> Nfs4AceType
Returns whether this entry allows or denies access.
Sourcepub const fn qualifier(self) -> Nfs4AceQualifier
pub const fn qualifier(self) -> Nfs4AceQualifier
Returns the principal to which this entry applies.
Sourcepub const fn mask(self) -> Nfs4AceMask
pub const fn mask(self) -> Nfs4AceMask
Returns the access-rights mask.
Sourcepub const fn flags(self) -> Nfs4AceFlags
pub const fn flags(self) -> Nfs4AceFlags
Returns the inheritance and qualifier flags.
Trait Implementations§
impl Copy for Nfs4Ace
Source§impl<'de> Deserialize<'de> for Nfs4Ace
impl<'de> Deserialize<'de> for Nfs4Ace
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 Nfs4Ace
impl StructuralPartialEq for Nfs4Ace
Auto Trait Implementations§
impl Freeze for Nfs4Ace
impl RefUnwindSafe for Nfs4Ace
impl Send for Nfs4Ace
impl Sync for Nfs4Ace
impl Unpin for Nfs4Ace
impl UnsafeUnpin for Nfs4Ace
impl UnwindSafe for Nfs4Ace
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