pub struct Xattr {
pub name: String,
pub value: Vec<u8>,
}Expand description
One extended attribute: a fully-qualified name and its raw value bytes.
Fields§
§name: StringFully-qualified name including its namespace prefix, e.g.
security.capability or user.mime_type.
value: Vec<u8>Raw value bytes. May be arbitrary binary (a capability struct) or UTF-8
text (user.* attributes often are) — the caller decides how to render.
Implementations§
Trait Implementations§
impl Eq for Xattr
impl StructuralPartialEq for Xattr
Auto Trait Implementations§
impl Freeze for Xattr
impl RefUnwindSafe for Xattr
impl Send for Xattr
impl Sync for Xattr
impl Unpin for Xattr
impl UnsafeUnpin for Xattr
impl UnwindSafe for Xattr
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