pub(super) enum L2Mapping {
DataFile {
host_cluster: HostCluster,
copied: bool,
},
Backing {
backing_offset: u64,
},
Zero {
host_cluster: Option<HostCluster>,
copied: bool,
},
Compressed {
host_offset: HostOffset,
length: u64,
},
}
Expand description
High-level representation of an L2 entry.
Variants§
DataFile
Data is in the data file.
Fields
§
host_cluster: HostCluster
Cluster in the data file.
Backing
Data is in the backing file.
Zero
Data is zero.
Fields
§
host_cluster: Option<HostCluster>
Preallocated cluster in the data file, if any.
Compressed
Data is compressed.
Fields
§
host_offset: HostOffset
Offset in the data file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for L2Mapping
impl RefUnwindSafe for L2Mapping
impl Send for L2Mapping
impl Sync for L2Mapping
impl Unpin for L2Mapping
impl UnwindSafe for L2Mapping
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