Struct DecompressError

pub struct DecompressError(/* private field */);

Error returned when a decompression object finds that the input stream of bytes was not a valid input stream of bytes.

Implementations

impl DecompressError

fn message(&self) -> Option<&str>

Retrieve the implementation's message about why the operation failed, if one exists.

impl DecompressError

fn needs_dictionary(&self) -> Option<u32>

Indicates whether decompression failed due to requiring a dictionary.

The resulting integer is the Adler-32 checksum of the dictionary required.

Trait Implementations

impl Clone for DecompressError

fn clone(&self) -> DecompressError

impl Debug for DecompressError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Display for DecompressError

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Error for DecompressError

Auto Trait Implementations

impl Freeze for DecompressError

impl RefUnwindSafe for DecompressError

impl Send for DecompressError

impl Sync for DecompressError

impl Unpin for DecompressError

impl UnsafeUnpin for DecompressError

impl UnwindSafe for DecompressError

Blanket Implementations

impl<T> Any for DecompressError where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for DecompressError where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for DecompressError where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for DecompressError where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for DecompressError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for DecompressError where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T> ToString for DecompressError where T: Display + ?Sized,

fn to_string(&self) -> String

impl<T, U> Into<U> for DecompressError where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for DecompressError where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for DecompressError where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>