Enum jpeg_encoder::EncodingError[][src]

pub enum EncodingError {
    InvalidAppSegment(u8),
    AppSegmentTooLarge(usize),
    IccTooLarge(usize),
    BadImageData {
        length: usize,
        required: usize,
    },
    ZeroImageDimensions {
        width: u16,
        height: u16,
    },
    IoError(Error),
}

Variants

InvalidAppSegment(u8)

An invalid app segment number has been used

AppSegmentTooLarge(usize)

App segment exceeds maximum allowed data length

IccTooLarge(usize)

Color profile exceeds maximum allowed data length

BadImageData

Image data is too short

Show fields

Fields of BadImageData

length: usizerequired: usize
ZeroImageDimensions

Width or height is zero

Show fields

Fields of ZeroImageDimensions

width: u16height: u16
IoError(Error)

An io error occurred during writing

Trait Implementations

impl Debug for EncodingError[src]

impl Display for EncodingError[src]

impl Error for EncodingError[src]

impl From<Error> for EncodingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.