#[non_exhaustive]pub enum GzipErrorKind {
BadMagic,
UnsupportedCompressionMethod(u8),
ReservedFlags(u8),
HeaderChecksumMismatch {
expected: u16,
actual: u16,
},
UnterminatedHeaderField,
Truncated,
TrailingGarbage,
}Expand description
The reason a gzip container was rejected.
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.
BadMagic
The gzip identification bytes were absent.
UnsupportedCompressionMethod(u8)
The member did not use the DEFLATE compression method.
ReservedFlags(u8)
One or more reserved flag bits were set.
HeaderChecksumMismatch
The optional header checksum was incorrect.
Fields
UnterminatedHeaderField
A zero-terminated header field reached the end of input.
Truncated
The member header or footer was truncated.
TrailingGarbage
Bytes after a valid member were not another gzip member.
Trait Implementations§
Source§impl Clone for GzipErrorKind
impl Clone for GzipErrorKind
Source§fn clone(&self) -> GzipErrorKind
fn clone(&self) -> GzipErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GzipErrorKind
impl Debug for GzipErrorKind
Source§impl Display for GzipErrorKind
impl Display for GzipErrorKind
impl Eq for GzipErrorKind
Source§impl PartialEq for GzipErrorKind
impl PartialEq for GzipErrorKind
impl StructuralPartialEq for GzipErrorKind
Auto Trait Implementations§
impl Freeze for GzipErrorKind
impl RefUnwindSafe for GzipErrorKind
impl Send for GzipErrorKind
impl Sync for GzipErrorKind
impl Unpin for GzipErrorKind
impl UnsafeUnpin for GzipErrorKind
impl UnwindSafe for GzipErrorKind
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