pub enum FileExtentBody {
Inline {
inline_size: usize,
},
Regular {
disk_bytenr: u64,
disk_num_bytes: u64,
offset: u64,
num_bytes: u64,
},
}Expand description
Body of a file extent: either inline data or a reference to a disk extent.
Variants§
Inline
Data is stored directly in the tree leaf (small files/tails).
Regular
Data is stored in a separate disk extent.
Fields
Trait Implementations§
Source§impl Clone for FileExtentBody
impl Clone for FileExtentBody
Source§fn clone(&self) -> FileExtentBody
fn clone(&self) -> FileExtentBody
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 moreAuto Trait Implementations§
impl Freeze for FileExtentBody
impl RefUnwindSafe for FileExtentBody
impl Send for FileExtentBody
impl Sync for FileExtentBody
impl Unpin for FileExtentBody
impl UnsafeUnpin for FileExtentBody
impl UnwindSafe for FileExtentBody
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