pub enum ImageEncodingError {
EncodeFailed {
kind: &'static str,
},
UnsupportedPixelFormat(PixelFormat),
Backend(String),
}Expand description
Errors produced by crate::ImageEncoderPort.
Variants§
EncodeFailed
The encoder failed for the given encoding kind.
UnsupportedPixelFormat(PixelFormat)
The encoder does not support the input’s pixel format.
Backend(String)
A backend-specific error surfaced as a string.
Trait Implementations§
Source§impl Debug for ImageEncodingError
impl Debug for ImageEncodingError
Source§impl Display for ImageEncodingError
impl Display for ImageEncodingError
Source§impl Error for ImageEncodingError
impl Error for ImageEncodingError
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<ImageEncodingError> for OpenCvError
impl From<ImageEncodingError> for OpenCvError
Source§fn from(source: ImageEncodingError) -> OpenCvError
fn from(source: ImageEncodingError) -> OpenCvError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImageEncodingError
impl RefUnwindSafe for ImageEncodingError
impl Send for ImageEncodingError
impl Sync for ImageEncodingError
impl Unpin for ImageEncodingError
impl UnsafeUnpin for ImageEncodingError
impl UnwindSafe for ImageEncodingError
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