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

Auto Trait Implementations

impl !RefUnwindSafe for DecodeErrors

impl !UnwindSafe for DecodeErrors

impl Freeze for DecodeErrors

impl Send for DecodeErrors

impl Sync for DecodeErrors

impl Unpin for DecodeErrors

impl UnsafeUnpin for DecodeErrors

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> From<T> for DecodeErrors

fn from(t: T) -> T

Returns the argument unchanged.

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

fn to_string(&self) -> String

impl<T, U> Into<U> for DecodeErrors 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 DecodeErrors where U: Into<T>,

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

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

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