Enum DecodingError
#[non_exhaustive]
pub enum DecodingError
Decoding error.
Variants
-
OutOfMemory Failed to internally allocate a buffer of sufficient size.
-
MemoryLimit Allocation exceeded set memory limit
-
DecoderNotFound Expected a decoder but none found.
-
EndCodeNotFound Expected an end-code, but none found.
-
UnexpectedEof Decoding could not complete as the reader completed prematurely.
-
LzwError(LzwError) Error encountered while decoding an LZW stream.
-
Format(DecodingFormatError) Returned if the image is found to be malformed.
-
Io(Error) Wraps
std::io::Error.
Trait Implementations
impl Debug for DecodingError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for DecodingError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl Error for DecodingError
fn source(&self) -> Option<&dyn Error + 'static>
impl From<DecodingFormatError> for DecodingError
fn from(err: DecodingFormatError) -> Self
impl From<Error> for DecodingError
fn from(err: Error) -> Self
impl From<LzwError> for DecodingError
fn from(err: LzwError) -> Self
Auto Trait Implementations
impl !RefUnwindSafe for DecodingError
impl !UnwindSafe for DecodingError
impl Freeze for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnsafeUnpin for DecodingError
Blanket Implementations
impl<T> Any for DecodingError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DecodingError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DecodingError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for DecodingError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for DecodingError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for DecodingError
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 DecodingError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DecodingError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>