#[non_exhaustive]pub enum DecompressionError {
InvalidPrefix,
InputIsTooSmall,
DataExceedsMaxSize,
UnexpectedEof,
InvalidData,
}Expand description
Errors than can occur while decompressing.
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.
InvalidPrefix
Invalid prefix.
InputIsTooSmall
The input is too small.
DataExceedsMaxSize
Compressed data exceeds provided maximum size.
UnexpectedEof
The input ended unexpectedly.
InvalidData
Catch-all variant for bogus input.
Trait Implementations§
Source§impl Clone for DecompressionError
impl Clone for DecompressionError
Source§fn clone(&self) -> DecompressionError
fn clone(&self) -> DecompressionError
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 DecompressionError
impl Debug for DecompressionError
Source§impl Display for DecompressionError
impl Display for DecompressionError
impl Eq for DecompressionError
Source§impl Error for DecompressionError
impl Error for DecompressionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DecompressionError
impl PartialEq for DecompressionError
impl StructuralPartialEq for DecompressionError
Auto Trait Implementations§
impl Freeze for DecompressionError
impl RefUnwindSafe for DecompressionError
impl Send for DecompressionError
impl Sync for DecompressionError
impl Unpin for DecompressionError
impl UnsafeUnpin for DecompressionError
impl UnwindSafe for DecompressionError
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