pub enum CompressMode {
Never,
Always,
Detect,
}Available on crate features
builder and compression only.Expand description
Configures how a Leaf should be compressed.
Variants§
Never
The data is never compressed and is embedded as is.
Always
The data will always be compressed
Detect
The compressed data is used, only if it is smaller than the original data.
Trait Implementations§
Source§impl Clone for CompressMode
impl Clone for CompressMode
Source§fn clone(&self) -> CompressMode
fn clone(&self) -> CompressMode
Returns a duplicate 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 CompressMode
impl Debug for CompressMode
Source§impl Default for CompressMode
impl Default for CompressMode
Source§fn default() -> CompressMode
fn default() -> CompressMode
Returns the “default value” for a type. Read more
impl Copy for CompressMode
Auto Trait Implementations§
impl Freeze for CompressMode
impl RefUnwindSafe for CompressMode
impl Send for CompressMode
impl Sync for CompressMode
impl Unpin for CompressMode
impl UnwindSafe for CompressMode
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