pub enum SnapshotCompression {
None,
Lz4,
}Expand description
Compression mode used when writing a snapshot file.
Variants§
None
Store the snapshot body directly.
Lz4
Store the snapshot body with lz4 size-prepended compression.
Implementations§
Source§impl SnapshotCompression
impl SnapshotCompression
pub const fn from_enabled(enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for SnapshotCompression
impl Clone for SnapshotCompression
Source§fn clone(&self) -> SnapshotCompression
fn clone(&self) -> SnapshotCompression
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 SnapshotCompression
impl Debug for SnapshotCompression
Source§impl PartialEq for SnapshotCompression
impl PartialEq for SnapshotCompression
Source§fn eq(&self, other: &SnapshotCompression) -> bool
fn eq(&self, other: &SnapshotCompression) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SnapshotCompression
impl Eq for SnapshotCompression
impl StructuralPartialEq for SnapshotCompression
Auto Trait Implementations§
impl Freeze for SnapshotCompression
impl RefUnwindSafe for SnapshotCompression
impl Send for SnapshotCompression
impl Sync for SnapshotCompression
impl Unpin for SnapshotCompression
impl UnsafeUnpin for SnapshotCompression
impl UnwindSafe for SnapshotCompression
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