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§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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more