pub enum VideoCaptureError {
OpenFailed {
path: String,
},
NotOpen,
ReadFailed,
EndOfStream,
UnsupportedBackend,
SeekFailed,
InvalidFps,
Backend(String),
}Expand description
Errors produced by crate::VideoCapturePort and crate::VideoStream.
Variants§
OpenFailed
The backend could not open the provided source path.
NotOpen
An operation was invoked on a stream that is not currently open.
ReadFailed
A frame read failed for reasons other than end-of-stream.
EndOfStream
The stream has been exhausted.
UnsupportedBackend
The requested crate::Backend is not available on this platform.
SeekFailed
Seeking to the requested position failed.
InvalidFps
The backend reported a non-positive or otherwise invalid FPS.
Backend(String)
A backend-specific error surfaced as a string.
Trait Implementations§
Source§impl Debug for VideoCaptureError
impl Debug for VideoCaptureError
Source§impl Display for VideoCaptureError
impl Display for VideoCaptureError
Source§impl Error for VideoCaptureError
impl Error for VideoCaptureError
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<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 VideoCaptureError
impl RefUnwindSafe for VideoCaptureError
impl Send for VideoCaptureError
impl Sync for VideoCaptureError
impl Unpin for VideoCaptureError
impl UnsafeUnpin for VideoCaptureError
impl UnwindSafe for VideoCaptureError
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