pub struct EncodedDataChunk {
pub chunk_index: u64,
pub logical_offset: u64,
pub logical_size: usize,
pub encoded_size: u64,
pub encoding: DataChunkEncoding,
pub has_checksum: bool,
pub data: Vec<u8>,
}Expand description
Encoded data chunk as stored in an EWF segment.
Fields§
§chunk_index: u64Zero-based logical chunk index.
logical_offset: u64Logical byte offset of the chunk.
logical_size: usizeLogical byte size after decoding.
encoded_size: u64Encoded byte size stored in the segment.
encoding: DataChunkEncodingEncoding used by the chunk payload.
has_checksum: boolWhether raw chunk data includes a checksum trailer.
data: Vec<u8>Encoded chunk bytes.
Implementations§
Trait Implementations§
Source§impl Clone for EncodedDataChunk
impl Clone for EncodedDataChunk
Source§fn clone(&self) -> EncodedDataChunk
fn clone(&self) -> EncodedDataChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodedDataChunk
impl Debug for EncodedDataChunk
impl Eq for EncodedDataChunk
Source§impl PartialEq for EncodedDataChunk
impl PartialEq for EncodedDataChunk
impl StructuralPartialEq for EncodedDataChunk
Auto Trait Implementations§
impl Freeze for EncodedDataChunk
impl RefUnwindSafe for EncodedDataChunk
impl Send for EncodedDataChunk
impl Sync for EncodedDataChunk
impl Unpin for EncodedDataChunk
impl UnsafeUnpin for EncodedDataChunk
impl UnwindSafe for EncodedDataChunk
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.