#[repr(C)]pub enum Compress {
None = 0,
Zstd = 1,
Auto = 2,
}Expand description
Compression mode for entries.
Variants§
None = 0
No compression.
Zstd = 1
Zstandard compression.
Auto = 2
Automatically compress if entry is larger than 2KB threshold. Note: This is never stored on disk, only used as a policy hint.
Trait Implementations§
impl Copy for Compress
impl Eq for Compress
Source§impl Ord for Compress
impl Ord for Compress
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 PartialOrd for Compress
impl PartialOrd for Compress
impl StructuralPartialEq for Compress
Auto Trait Implementations§
impl Freeze for Compress
impl RefUnwindSafe for Compress
impl Send for Compress
impl Sync for Compress
impl Unpin for Compress
impl UnsafeUnpin for Compress
impl UnwindSafe for Compress
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