pub enum JpegDecodingError {
NoSoiMarker,
NoSofMarker {
position: usize,
comments: Vec<Vec<u8>>,
},
SofDataTooShort {
position: usize,
},
InvalidFrameMarker {
word: u16,
position: usize,
},
InvalidSegmentLength(usize),
UnexpectedEndOfData(usize),
}
Expand description
An error that occurred while decoding a JPEG image.
Variants§
NoSoiMarker
NoSofMarker
SofDataTooShort
InvalidFrameMarker
InvalidSegmentLength(usize)
UnexpectedEndOfData(usize)
Trait Implementations§
Source§impl Clone for JpegDecodingError
impl Clone for JpegDecodingError
Source§fn clone(&self) -> JpegDecodingError
fn clone(&self) -> JpegDecodingError
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for JpegDecodingError
impl Debug for JpegDecodingError
Source§impl Display for JpegDecodingError
impl Display for JpegDecodingError
Source§impl Error for JpegDecodingError
impl Error for JpegDecodingError
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<JpegDecodingError> for DecodingError
impl From<JpegDecodingError> for DecodingError
Source§fn from(e: JpegDecodingError) -> Self
fn from(e: JpegDecodingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for JpegDecodingError
impl PartialEq for JpegDecodingError
impl Eq for JpegDecodingError
impl StructuralPartialEq for JpegDecodingError
Auto Trait Implementations§
impl Freeze for JpegDecodingError
impl RefUnwindSafe for JpegDecodingError
impl Send for JpegDecodingError
impl Sync for JpegDecodingError
impl Unpin for JpegDecodingError
impl UnwindSafe for JpegDecodingError
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