#[non_exhaustive]pub enum XattrValue {
Embedded(Vec<u8>),
Stream {
dstream_oid: u64,
size: u64,
},
}Expand description
Where an xattr’s value lives.
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.
Embedded(Vec<u8>)
The value is stored inline in the record.
Stream
The value is stored in a data stream: (dstream_oid, logical_size). The
bytes are the FILE_EXTENT records keyed by dstream_oid
(crate::extent::read_stream).
Trait Implementations§
Source§impl Clone for XattrValue
impl Clone for XattrValue
Source§fn clone(&self) -> XattrValue
fn clone(&self) -> XattrValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for XattrValue
impl RefUnwindSafe for XattrValue
impl Send for XattrValue
impl Sync for XattrValue
impl Unpin for XattrValue
impl UnsafeUnpin for XattrValue
impl UnwindSafe for XattrValue
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