pub struct DataChunk {
pub chunk_index: u64,
pub logical_offset: u64,
pub logical_size: usize,
pub encoded_size: u64,
pub encoding: DataChunkEncoding,
pub corrupted: bool,
pub data: Vec<u8>,
}Expand description
Decoded logical data chunk.
Fields§
§chunk_index: u64Zero-based logical chunk index.
logical_offset: u64Logical byte offset of the chunk.
logical_size: usizeLogical byte size of the decoded chunk.
encoded_size: u64Encoded byte size as stored in the segment.
encoding: DataChunkEncodingEncoding used by the stored chunk.
corrupted: boolWhether the chunk was returned under a corruption-tolerant read policy.
data: Vec<u8>Decoded chunk bytes.
Implementations§
Trait Implementations§
impl Eq for DataChunk
impl StructuralPartialEq for DataChunk
Auto Trait Implementations§
impl Freeze for DataChunk
impl RefUnwindSafe for DataChunk
impl Send for DataChunk
impl Sync for DataChunk
impl Unpin for DataChunk
impl UnsafeUnpin for DataChunk
impl UnwindSafe for DataChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.