pub enum CcapError {
Show 18 variants
None,
NoDeviceFound,
InvalidDevice(String),
DeviceOpenFailed,
DeviceAlreadyOpened,
DeviceNotOpened,
CaptureStartFailed,
CaptureStopFailed,
FrameGrabFailed,
Timeout,
InvalidParameter(String),
NotSupported,
BackendSetFailed,
StringConversionError(String),
FileOperationFailed(String),
DeviceNotFound,
InternalError(String),
Unknown {
code: i32,
},
}Expand description
Error types for ccap operations
Variants§
None
No error occurred
NoDeviceFound
No camera device found
InvalidDevice(String)
Invalid device specified
DeviceOpenFailed
Camera device open failed
DeviceAlreadyOpened
Device already opened
DeviceNotOpened
Device not opened
CaptureStartFailed
Capture start failed
CaptureStopFailed
Capture stop failed
FrameGrabFailed
Frame grab failed
Timeout
Timeout occurred
InvalidParameter(String)
Invalid parameter
NotSupported
Not supported operation
BackendSetFailed
Backend set failed
StringConversionError(String)
String conversion error
FileOperationFailed(String)
File operation failed
DeviceNotFound
Device not found (alias for NoDeviceFound for compatibility)
InternalError(String)
Internal error
Unknown
Unknown error with error code
Trait Implementations§
Source§impl Error for CcapError
impl Error for CcapError
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()
Auto Trait Implementations§
impl Freeze for CcapError
impl RefUnwindSafe for CcapError
impl Send for CcapError
impl Sync for CcapError
impl Unpin for CcapError
impl UnwindSafe for CcapError
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