#[non_exhaustive]pub enum Format {
Deflate,
Zlib,
Gzip,
}Expand description
Which wrapper, if any, goes around the DEFLATE stream.
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
A raw DEFLATE stream (RFC 1951), with no header or checksum.
Zlib
A zlib stream (RFC 1950): a 2-byte header, DEFLATE, and an Adler-32
checksum. Streams that need a preset dictionary are rejected with
PresetDictionary.
Gzip
A gzip member (RFC 1952): a header, DEFLATE, a CRC-32 and the uncompressed size.
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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