#[non_exhaustive]pub enum DeflateErrorKind {
InvalidData,
UnexpectedDictionary,
BackendStatus(i32),
Truncated,
Stalled,
TrailingGarbage,
}Expand description
The reason a DEFLATE stream 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.
InvalidData
The backend rejected the compressed stream.
UnexpectedDictionary
The stream unexpectedly requested a preset dictionary.
BackendStatus(i32)
The backend returned an unexpected status code.
Truncated
No progress was possible before the end of the compressed input.
Stalled
The decoder made no progress despite having input and output space.
TrailingGarbage
Bytes remained after the final block of a raw DEFLATE stream.
Trait Implementations§
Source§impl Clone for DeflateErrorKind
impl Clone for DeflateErrorKind
Source§fn clone(&self) -> DeflateErrorKind
fn clone(&self) -> DeflateErrorKind
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 DeflateErrorKind
impl Debug for DeflateErrorKind
Source§impl Display for DeflateErrorKind
impl Display for DeflateErrorKind
impl Eq for DeflateErrorKind
Source§impl PartialEq for DeflateErrorKind
impl PartialEq for DeflateErrorKind
impl StructuralPartialEq for DeflateErrorKind
Auto Trait Implementations§
impl Freeze for DeflateErrorKind
impl RefUnwindSafe for DeflateErrorKind
impl Send for DeflateErrorKind
impl Sync for DeflateErrorKind
impl Unpin for DeflateErrorKind
impl UnsafeUnpin for DeflateErrorKind
impl UnwindSafe for DeflateErrorKind
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