pub enum Chunk {
Inline(Box<[u8]>),
External(ContentReference),
}Expand description
A chunk of data in a zstd:chunked stream. Either contains inline data or a reference to a compressed range (and checksum and size information about the data at that range).
Variants§
Inline(Box<[u8]>)
The literal data appears directly.
External(ContentReference)
The data appears at the referenced range, which may need to be fetched and decompressed.
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