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),
Write(String),
}Expand description
Variants
InvalidAppSegment(u8)An invalid app segment number has been used
Tuple Fields of InvalidAppSegment
0: u8AppSegmentTooLarge(usize)App segment exceeds maximum allowed data length
Tuple Fields of AppSegmentTooLarge
0: usizeIccTooLarge(usize)Color profile exceeds maximum allowed data length
Tuple Fields of IccTooLarge
0: usizeImage data is too short
Width or height is zero
IoError(Error)An io error occurred during writing
Tuple Fields of IoError
0: ErrorWrite(String)An io error occurred during writing (Should be used in no_std cases instead of IoError)
Tuple Fields of Write
0: StringTrait Implementations
Performs the conversion.