Enum Algorithm
#[non_exhaustive]pub enum Algorithm {
Deflate,
Zlib,
Lzo,
Xz,
Lz4,
Zstd,
}Expand description
Compression algorithm and format of a block.
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.
Deflate
Raw deflate, as UBIFS stores it.
Zlib
Deflate in a zlib stream, as squashfs stores it under the name gzip.
Lzo
LZO1X.
Xz
LZMA2 in an xz stream.
Lz4
An LZ4 block without a frame.
Zstd
Zstandard frames.
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze 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