Enum lsmlite_rs::LsmCompressionLib
source · #[repr(C)]pub enum LsmCompressionLib {
NoCompression = 1,
LZ4 = 10_001,
ZLib = 10002,
ZStd = 10003,
}
Expand description
These are the current supported compression libraries. A comparison of the
performance of different compression libraries (compression ratio and throughput
can be found here: https://github.com/lz4/lz4. Support for more compression
libraries like, Snappy
, may be added in the future.
Variants§
NoCompression = 1
By default, no compression is performed.
LZ4 = 10_001
Uses LZ4
to compress data pages.
ZLib = 10002
Uses Zlib
to compress data pages.
ZStd = 10003
Uses ZStd
to compress data pages.
Trait Implementations§
source§impl Clone for LsmCompressionLib
impl Clone for LsmCompressionLib
source§fn clone(&self) -> LsmCompressionLib
fn clone(&self) -> LsmCompressionLib
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 LsmCompressionLib
impl Debug for LsmCompressionLib
source§impl Default for LsmCompressionLib
impl Default for LsmCompressionLib
source§fn default() -> LsmCompressionLib
fn default() -> LsmCompressionLib
Returns the “default value” for a type. Read more
source§impl PartialEq for LsmCompressionLib
impl PartialEq for LsmCompressionLib
source§fn eq(&self, other: &LsmCompressionLib) -> bool
fn eq(&self, other: &LsmCompressionLib) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<i32> for LsmCompressionLib
impl TryFrom<i32> for LsmCompressionLib
impl Copy for LsmCompressionLib
impl Eq for LsmCompressionLib
impl StructuralEq for LsmCompressionLib
impl StructuralPartialEq for LsmCompressionLib
Auto Trait Implementations§
impl RefUnwindSafe for LsmCompressionLib
impl Send for LsmCompressionLib
impl Sync for LsmCompressionLib
impl Unpin for LsmCompressionLib
impl UnwindSafe for LsmCompressionLib
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