pub struct ChunkData {
pub hash: u64,
pub offset: u64,
pub length: usize,
pub data: Vec<u8>,
}Expand description
Represents a chunk returned from the StreamCDC iterator.
Fields§
§hash: u64The gear hash value as of the end of the chunk.
offset: u64Starting byte position within the source.
length: usizeLength of the chunk in bytes.
data: Vec<u8>Source bytes contained in this chunk.
Trait Implementations§
impl Eq for ChunkData
impl StructuralPartialEq for ChunkData
Auto Trait Implementations§
impl Freeze for ChunkData
impl RefUnwindSafe for ChunkData
impl Send for ChunkData
impl Sync for ChunkData
impl Unpin for ChunkData
impl UnwindSafe for ChunkData
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