#[non_exhaustive]pub enum Compression {
Lz4,
Deflate(CompressionLevel),
Custom(Box<dyn CompressBoxedClone>),
}Expand description
Configure compression for the temporary file into which your data might be swapped out.
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.
Lz4
Read more about LZ4 here: [LZ4] [LZ4]: https://github.com/lz4/lz4
Deflate(CompressionLevel)
Deflate, mostly known from gzip.
Custom(Box<dyn CompressBoxedClone>)
Provide your own compression algortihm by implementing
Compress.
Trait Implementations§
Source§impl Clone for Compression
impl Clone 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