Enum InflateError
#[repr(i32)]
pub enum InflateError
Errors that can occur when decompressing.
Variants
-
NeedDict { dict_id: u32 } = 2 Decompressing this input requires a dictionary.
-
StreamError = -2 The
Inflateis 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
impl InflateError
fn as_str(self) -> &'static str
Trait Implementations
impl Clone for InflateError
fn clone(&self) -> Self
impl Copy for InflateError
impl Debug for InflateError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for InflateError
impl PartialEq for InflateError
fn eq(&self, other: &Self) -> bool
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 UnsafeUnpin for InflateError
impl UnwindSafe for InflateError
Blanket Implementations
impl<T> Any for InflateError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for InflateError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for InflateError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for InflateError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for InflateError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for InflateError
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for InflateError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for InflateError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for InflateError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>