pub enum Error {
OutputTooSmall,
InputTruncated,
Unsupported,
InvalidConfig,
}Expand description
JPEG driver errors.
Variants§
OutputTooSmall
Output buffer is smaller than the produced JPEG / decoded image.
InputTruncated
Input ended before the codec consumed enough data to finish.
Unsupported
JPEG features that aren’t supported (progressive, 12-bit, RGB/CMYK source, etc).
InvalidConfig
Encode parameters are invalid (zero dimensions, out-of-range quality, dimensions not a multiple of the MCU size, mismatched buffer sizes, etc).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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