#[non_exhaustive]pub enum DataChunkEncoding {
Raw,
Zlib,
Zstd,
Bzip2,
PatternFill(u64),
}Expand description
Encoding used for a data chunk payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Raw
Uncompressed chunk data.
Zlib
zlib-compressed chunk data.
Zstd
X-Ways EWF1 magicless Zstandard data or its one-byte zero marker.
Bzip2
BZip2-compressed chunk data.
PatternFill(u64)
Pattern-fill chunk data with the repeated pattern value.
Trait Implementations§
Source§impl Clone for DataChunkEncoding
impl Clone for DataChunkEncoding
impl Copy for DataChunkEncoding
Source§impl Debug for DataChunkEncoding
impl Debug for DataChunkEncoding
impl Eq for DataChunkEncoding
Source§impl PartialEq for DataChunkEncoding
impl PartialEq for DataChunkEncoding
impl StructuralPartialEq for DataChunkEncoding
Auto Trait Implementations§
impl Freeze for DataChunkEncoding
impl RefUnwindSafe for DataChunkEncoding
impl Send for DataChunkEncoding
impl Sync for DataChunkEncoding
impl Unpin for DataChunkEncoding
impl UnsafeUnpin for DataChunkEncoding
impl UnwindSafe for DataChunkEncoding
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