pub enum Compression {
None,
Gzip,
Snappy,
Lz4,
Zstd,
Unknown(u8),
}Expand description
Compression codec, from the low three bits of batch attributes.
Variants§
None
Gzip
Snappy
Lz4
Zstd
Unknown(u8)
A codec this crate does not know. Carried losslessly: the batch’s payload stays raw and re-encodes byte-identically.
Implementations§
Source§impl Compression
impl Compression
Sourcepub fn attribute_bits(self) -> i16
pub fn attribute_bits(self) -> i16
The attribute bits that select this codec — the inverse of
Compression::from_attributes, kept beside it so a new codec
number cannot land in one direction only.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
impl Copy for Compression
Source§impl Debug for Compression
impl Debug for Compression
impl Eq for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Forget for Compression
impl Freeze for Compression
impl Move for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin for Compression
impl UnsafeUnpin for Compression
impl UnwindSafe for Compression
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