#[non_exhaustive]pub enum XattrNamespace {
User,
Trusted,
Security,
SystemPosixAcl,
}Expand description
Namespace for setxattr(2) extended attribute operations.
Determines the security model for the attribute write.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
User
user.* attributes — owner or CAP_FOWNER.
Trusted
trusted.* attributes — requires CAP_SYS_ADMIN.
Security
security.* attributes — requires CAP_SYS_ADMIN.
SystemPosixAcl
system.posix_acl_access — owner or CAP_FOWNER.
Trait Implementations§
Source§impl Clone for XattrNamespace
impl Clone for XattrNamespace
Source§fn clone(&self) -> XattrNamespace
fn clone(&self) -> XattrNamespace
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XattrNamespace
impl Debug for XattrNamespace
Source§impl PartialEq for XattrNamespace
impl PartialEq for XattrNamespace
Source§impl Serialize for XattrNamespace
impl Serialize for XattrNamespace
impl Copy for XattrNamespace
impl Eq for XattrNamespace
impl StructuralPartialEq for XattrNamespace
Auto Trait Implementations§
impl Freeze for XattrNamespace
impl RefUnwindSafe for XattrNamespace
impl Send for XattrNamespace
impl Sync for XattrNamespace
impl Unpin for XattrNamespace
impl UnsafeUnpin for XattrNamespace
impl UnwindSafe for XattrNamespace
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