pub enum DecodeErrors {
Show 14 variants
Format(String),
FormatStatic(&'static str),
IllegalMagicBytes(u16),
HuffmanDecode(String),
ZeroError,
DqtError(String),
SosError(String),
SofError(String),
Unsupported(UnsupportedSchemes),
MCUError(String),
ExhaustedData,
LargeDimensions(usize),
TooSmallOutput(usize, usize),
IoErrors(ZByteIoError),
}Expand description
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§
Source§impl Debug for DecodeErrors
impl Debug for DecodeErrors
Source§impl Display for DecodeErrors
impl Display for DecodeErrors
Source§impl Error for DecodeErrors
Available on crate feature std only.
impl Error for DecodeErrors
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&'static str> for DecodeErrors
impl From<&'static str> for DecodeErrors
Source§impl From<ZByteIoError> for DecodeErrors
impl From<ZByteIoError> for DecodeErrors
Source§fn from(data: ZByteIoError) -> Self
fn from(data: ZByteIoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DecodeErrors
impl !RefUnwindSafe for DecodeErrors
impl Send for DecodeErrors
impl Sync for DecodeErrors
impl Unpin for DecodeErrors
impl !UnwindSafe for DecodeErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more