#[non_exhaustive]pub enum Compression {
None,
Lz4,
Lz4Hc(i32),
}
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.
None
Disables any compression.
Used by default if the lz4
feature is disabled.
Lz4
Available on crate feature
lz4
only.Uses LZ4
codec to (de)compress.
Used by default if the lz4
feature is enabled.
Lz4Hc(i32)
👎Deprecated: use
Compression::Lz4
insteadAvailable on crate feature
lz4
only.Uses LZ4HC
codec to compress and LZ4
to decompress.
High compression levels are useful in networks with low bandwidth.
Affects only INSERT
s, because others are compressed by the server.
Possible levels: [1, 12]
. Recommended level range: [4, 9]
.
Deprecated: lz4_flex
doesn’t support HC mode yet: lz4_flex#165.
Trait Implementations§
Source§impl Clone for Compression
impl Clone for Compression
Source§fn clone(&self) -> Compression
fn clone(&self) -> Compression
Returns a copy of the value. Read more
1.0.0 · 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 Compression
impl Debug for Compression
Source§impl Default for Compression
impl Default for Compression
Source§impl PartialEq for Compression
impl PartialEq for Compression
impl Copy for Compression
impl Eq for Compression
impl StructuralPartialEq for Compression
Auto Trait Implementations§
impl Freeze for Compression
impl RefUnwindSafe for Compression
impl Send for Compression
impl Sync for Compression
impl Unpin 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