Enum DecodeErrors
pub enum DecodeErrors
Common Decode errors
Variants
-
Format(String) Any other thing we do not know
-
FormatStatic(&'static str) Any other thing we do not know but we don't need to allocate space on the heap
-
IllegalMagicBytes(u16) Illegal Magic Bytes
-
HuffmanDecode(String) problems with the Huffman Tables in a Decoder file
-
ZeroError Image has zero width
-
DqtError(String) Discrete Quantization Tables error
-
SosError(String) Start of scan errors
-
SofError(String) Start of frame errors
-
Unsupported(UnsupportedSchemes) UnsupportedImages
-
MCUError(String) MCU errors
-
ExhaustedData Exhausted data
-
LargeDimensions(usize) Large image dimensions(Corrupted data)?
-
TooSmallOutput(usize, usize) Too small output for size
-
IoErrors(ZByteIoError)
Trait Implementations
impl Debug for DecodeErrors
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for DecodeErrors
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for DecodeErrors
impl From<&'static str> for DecodeErrors
fn from(data: &'static str) -> Self
impl From<ZByteIoError> for DecodeErrors
fn from(data: ZByteIoError) -> Self