pub enum OpenCvError {
VideoCapture(VideoCaptureError),
ImageEncoding(ImageEncodingError),
ImageOps(ImageOpsError),
}Expand description
Umbrella error type spanning every port in the domain.
Variants§
VideoCapture(VideoCaptureError)
A VideoCaptureError occurred.
ImageEncoding(ImageEncodingError)
An ImageEncodingError occurred.
ImageOps(ImageOpsError)
An ImageOpsError occurred.
Trait Implementations§
Source§impl Debug for OpenCvError
impl Debug for OpenCvError
Source§impl Display for OpenCvError
impl Display for OpenCvError
Source§impl Error for OpenCvError
impl Error for OpenCvError
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.
Source§impl From<ImageOpsError> for OpenCvError
impl From<ImageOpsError> for OpenCvError
Source§fn from(source: ImageOpsError) -> OpenCvError
fn from(source: ImageOpsError) -> OpenCvError
Converts to this type from the input type.
Source§impl From<VideoCaptureError> for OpenCvError
impl From<VideoCaptureError> for OpenCvError
Source§fn from(source: VideoCaptureError) -> OpenCvError
fn from(source: VideoCaptureError) -> OpenCvError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenCvError
impl RefUnwindSafe for OpenCvError
impl Send for OpenCvError
impl Sync for OpenCvError
impl Unpin for OpenCvError
impl UnsafeUnpin for OpenCvError
impl UnwindSafe for OpenCvError
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