pub enum Error {
Spawn {
source: Error,
path: String,
},
NoStdout,
Io(Error),
EndOfStream {
frames_read: u64,
},
InvalidFormat {
width: u32,
height: u32,
framerate: f64,
},
CameraNotFound {
id: String,
},
}Expand description
Failure modes for the GStreamer video capture pipe.
Variants§
Spawn
gst-launch-1.0 could not be launched. The PATH snapshot in
the message makes CI diagnoses easier.
Fields
NoStdout
Stdout was not piped.
Io(Error)
I/O error while reading from the child’s stdout.
EndOfStream
Pipeline ended before the requested frame was read.
InvalidFormat
Dimensions or framerate would produce zero-byte frames.
Fields
CameraNotFound
The picker handed us a camera_id that no longer matches any
device on the host — typically the camera was unplugged
between list_cameras() and from_camera(). Callers should
re-enumerate and re-prompt (M-CAM.4 / AUT — see
milestone-2-record-and-export.md).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl !UnwindSafe for Error
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