#[repr(i32)]pub enum InflateError {
NeedDict {
dict_id: u32,
},
StreamError = -2,
DataError = -3,
MemError = -4,
}Expand description
Errors that can occur when decompressing.
Variants§
NeedDict
Decompressing this input requires a dictionary.
StreamError = -2
The Inflate is in an inconsistent state, most likely
due to an invalid configuration parameter.
DataError = -3
The input is not a valid deflate stream.
MemError = -4
A memory allocation failed.
Implementations§
Trait Implementations§
Source§impl Clone for InflateError
impl Clone for InflateError
Source§fn clone(&self) -> InflateError
fn clone(&self) -> InflateError
Returns a duplicate of the value. Read more
1.0.0 · 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 InflateError
impl Debug for InflateError
Source§impl From<InflateError> for ReturnCode
impl From<InflateError> for ReturnCode
Source§fn from(value: InflateError) -> Self
fn from(value: InflateError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InflateError
impl PartialEq for InflateError
impl Copy for InflateError
impl Eq for InflateError
impl StructuralPartialEq for InflateError
Auto Trait Implementations§
impl Freeze for InflateError
impl RefUnwindSafe for InflateError
impl Send for InflateError
impl Sync for InflateError
impl Unpin for InflateError
impl UnwindSafe for InflateError
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