#[non_exhaustive]pub enum Algorithm {
Zstd,
Brotli,
Zlib,
Bz2,
Lz4,
Xz,
Lzma,
Snappy,
Gzip,
Deflate,
Lz4Raw,
Lzo,
}Expand description
A compression algorithm. Values match the CU_ALGO_* constants in the C ABI.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Zstd
Zstandard — frames carry the content size.
Brotli
Brotli — raw Brotli stream.
Zlib
zlib — DEFLATE with the zlib wrapper (RFC 1950).
Bz2
bzip2.
Lz4
LZ4 — LZ4 frame format (.lz4).
Xz
XZ — .xz stream with CRC64.
Lzma
Alias for Algorithm::Xz; produces .xz frames.
Snappy
Snappy — raw Snappy block format.
Gzip
gzip — DEFLATE with the gzip wrapper (RFC 1952).
Deflate
Raw RFC 1951 DEFLATE.
Lz4Raw
Raw LZ4 block, without framing or a size prefix. Supports incremental decoding.
Lzo
Raw LZO1X block. Decompression only.
Implementations§
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Forget for Algorithm
impl Freeze for Algorithm
impl Move for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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