Enum libdeflater::DecompressionError
source · [−]pub enum DecompressionError {
BadData,
InsufficientSpace,
}
Expand description
An error that may be returned by one of the
Decompressor
’s decompress_*
methods when a decompression cannot be performed.
Variants
BadData
The provided data is invalid in some way. For example, the checksum in the data revealed possible corruption, magic numbers in the data do not match expectations, etc.
InsufficientSpace
The provided output buffer is not large enough to accomodate the decompressed data.
Trait Implementations
sourceimpl Debug for DecompressionError
impl Debug for DecompressionError
sourceimpl Display for DecompressionError
impl Display for DecompressionError
sourceimpl Error for DecompressionError
impl Error for DecompressionError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<DecompressionError> for DecompressionError
impl PartialEq<DecompressionError> for DecompressionError
sourcefn eq(&self, other: &DecompressionError) -> bool
fn eq(&self, other: &DecompressionError) -> bool
impl StructuralPartialEq for DecompressionError
Auto Trait Implementations
impl RefUnwindSafe for DecompressionError
impl Send for DecompressionError
impl Sync for DecompressionError
impl Unpin for DecompressionError
impl UnwindSafe for DecompressionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more