pub struct Segment {
pub xorb_hash: MerkleHash,
pub chunk_start: u32,
pub chunk_end: u32,
pub byte_len: u64,
}Expand description
One reconstruction segment: the xorb that holds the bytes, the chunk-index
range within that xorb, and the total byte length of those chunks. This is
a deserialized view of one mdb_shard FileDataSequenceEntry, exposed for
callers (e.g. GetFile) that reassemble without keeping a full xorb chunk
table in memory.
Fields§
§xorb_hash: MerkleHashXorb hash (Merkle root over the xorb’s chunk hashes).
chunk_start: u32Inclusive start chunk index within the xorb (local to the xorb).
chunk_end: u32Exclusive end chunk index within the xorb.
byte_len: u64Total byte length of the chunk range [chunk_start, chunk_end).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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