#[non_exhaustive]pub enum Feature {
Snappy,
Brotli,
Gzip,
Lz4,
Zstd,
}
Expand description
List of features whose non-activation may cause a runtime error.
Used to indicate which lack of feature caused Error::FeatureNotActive
.
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.
Snappy
Snappy compression and decompression
Brotli
Brotli compression and decompression
Gzip
Gzip compression and decompression
Lz4
Lz4 raw compression and decompression
Zstd
Zstd compression and decompression
Trait Implementations§
source§impl PartialEq for Feature
impl PartialEq for Feature
impl Copy for Feature
impl Eq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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