Enum jpeg_decoder::Error
source · pub enum Error {
Format(String),
Unsupported(UnsupportedFeature),
Io(IoError),
Internal(Box<dyn StdError + Send + Sync + 'static>),
}
Expand description
Errors that can occur while decoding a JPEG image.
Variants§
Format(String)
The image is not formatted properly. The string contains detailed information about the error.
Unsupported(UnsupportedFeature)
The image makes use of a JPEG feature not (currently) supported by this library.
Io(IoError)
An I/O error occurred while decoding the image.
Internal(Box<dyn StdError + Send + Sync + 'static>)
An internal error occurred while decoding the image.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
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()