pub enum Extent {
Owned(Bytes),
Cloned(Cloned),
Hole(u64),
}
Expand description
A single piece of data that makes up a file. Immutable but can be composed with other Extents in order to implement mutable files on top of immutable extent chunks.
Variants§
Owned(Bytes)
The source-of-truth for this data is the file that contains it. It originated from a write to that File, not a clone from another.
Cloned(Cloned)
This extent came from part of another File.
Hole(u64)
This extent was created with ‘truncate’ and is actually empty
Implementations§
Trait Implementations§
impl Eq for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl !Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnwindSafe for Extent
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