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