pub struct Extent {
pub offset: u64,
pub length: u32,
pub hash: u64,
pub first: u64,
}Expand description
Where one extent of a section’s payload lives.
Each carries its own checksum, which is the second of section 3.2’s three rules: an extent is independently readable, so a reduction that only needs the third extent of a forward link reads and verifies one extent rather than two gigabytes.
Fields§
§offset: u64Where the extent’s bytes start.
length: u32How many bytes it holds, at most MAX_EXTENT.
hash: u64Checksum over those bytes.
first: u64How many logical elements precede this extent, so that a random access can find the extent holding an element without reading any of them.
Trait Implementations§
impl Copy for Extent
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 UnsafeUnpin 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