pub struct Chunk {
pub hash: MerkleHash,
pub data: Bytes,
}Expand description
A content-defined chunk: its BLAKE3-keyed hash and its bytes.
Fields§
§hash: MerkleHashBLAKE3 keyed with the global XET DATA_KEY (compute_data_hash).
data: BytesImplementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Chunk
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnsafeUnpin for Chunk
impl UnwindSafe for Chunk
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