pub enum CompressionCodec {
UNCOMPRESSED = 0,
SNAPPY = 1,
GZIP = 2,
LZO = 3,
BROTLI = 4,
LZ4 = 5,
ZSTD = 6,
LZ4_RAW = 7,
}Expand description
Supported compression algorithms.
Codecs added in format version X.Y can be read by readers based on X.Y and later. Codec support may vary between readers based on the format version and libraries available at runtime.
See Compression.md for a detailed specification of these algorithms.
Variants§
Implementations§
Source§impl CompressionCodec
impl CompressionCodec
Sourcepub const MAX_DISCRIMINANT: i32
pub const MAX_DISCRIMINANT: i32
Returns the largest discriminant value defined for this enum.
const fn max_discriminant_impl() -> i32
Trait Implementations§
Source§impl Clone for CompressionCodec
impl Clone for CompressionCodec
Source§fn clone(&self) -> CompressionCodec
fn clone(&self) -> CompressionCodec
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 CompressionCodec
impl Debug for CompressionCodec
Source§impl Display for CompressionCodec
impl Display for CompressionCodec
Source§impl From<Compression> for CompressionCodec
impl From<Compression> for CompressionCodec
Source§fn from(value: Compression) -> Self
fn from(value: Compression) -> Self
Converts to this type from the input type.
Source§impl From<CompressionCodec> for Compression
impl From<CompressionCodec> for Compression
Source§fn from(value: CompressionCodec) -> Self
fn from(value: CompressionCodec) -> Self
Converts to this type from the input type.
Source§impl Hash for CompressionCodec
impl Hash for CompressionCodec
Source§impl HeapSize for CompressionCodec
impl HeapSize for CompressionCodec
Source§impl Ord for CompressionCodec
impl Ord for CompressionCodec
Source§fn cmp(&self, other: &CompressionCodec) -> Ordering
fn cmp(&self, other: &CompressionCodec) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CompressionCodec
impl PartialEq for CompressionCodec
Source§fn eq(&self, other: &CompressionCodec) -> bool
fn eq(&self, other: &CompressionCodec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CompressionCodec
impl PartialOrd for CompressionCodec
Source§impl<'a, R: ThriftCompactInputProtocol<'a>> ReadThrift<'a, R> for CompressionCodec
impl<'a, R: ThriftCompactInputProtocol<'a>> ReadThrift<'a, R> for CompressionCodec
Source§fn read_thrift(prot: &mut R) -> Result<Self>
fn read_thrift(prot: &mut R) -> Result<Self>
Read an object of type
Self from the input protocol object.Source§impl WriteThrift for CompressionCodec
impl WriteThrift for CompressionCodec
Source§const ELEMENT_TYPE: ElementType = ElementType::I32
const ELEMENT_TYPE: ElementType = ElementType::I32
The
ElementType to use when a list of this object is written.Source§fn write_thrift<W: Write>(
&self,
writer: &mut ThriftCompactOutputProtocol<W>,
) -> Result<()>
fn write_thrift<W: Write>( &self, writer: &mut ThriftCompactOutputProtocol<W>, ) -> Result<()>
Serialize this object to the given
writer.Source§impl WriteThriftField for CompressionCodec
impl WriteThriftField for CompressionCodec
Source§fn write_thrift_field<W: Write>(
&self,
writer: &mut ThriftCompactOutputProtocol<W>,
field_id: i16,
last_field_id: i16,
) -> Result<i16>
fn write_thrift_field<W: Write>( &self, writer: &mut ThriftCompactOutputProtocol<W>, field_id: i16, last_field_id: i16, ) -> Result<i16>
Used to write struct fields (which may be primitive or IDL defined types). This will
write the field marker for the given
field_id, using last_field_id to compute the
field delta used by the Thrift compact protocol. On success this will return field_id
to be used in chaining.impl Copy for CompressionCodec
impl Eq for CompressionCodec
impl StructuralPartialEq for CompressionCodec
Auto Trait Implementations§
impl Freeze for CompressionCodec
impl RefUnwindSafe for CompressionCodec
impl Send for CompressionCodec
impl Sync for CompressionCodec
impl Unpin for CompressionCodec
impl UnsafeUnpin for CompressionCodec
impl UnwindSafe for CompressionCodec
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.