pub enum Compression {
Lz4,
Zstd,
ZstdWithDictionary,
Uncompressed,
}
Expand description
Static File compression types.
Variants§
Lz4
LZ4 compression algorithm.
Zstd
Zstandard (Zstd) compression algorithm.
ZstdWithDictionary
Zstandard (Zstd) compression algorithm with a dictionary.
Uncompressed
No compression.
Trait Implementations§
Source§impl AsRef<str> for Compression
impl AsRef<str> for Compression
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§fn default() -> Compression
fn default() -> Compression
Returns the “default value” for a type. Read more
Source§impl ValueEnum for Compression
impl ValueEnum for Compression
impl Copy 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Lz4
: 0 bytesZstd
: 0 bytesZstdWithDictionary
: 0 bytesUncompressed
: 0 bytes