pub trait CameraDevice {
type Stream: CameraStream;
type Error: Error;
// Required methods
fn id(&self) -> &str;
fn name(&self) -> &str;
fn supported_formats(&self) -> Result<Vec<FormatDescriptor>, Self::Error>;
fn open(self, config: &StreamConfig) -> Result<Self::Stream, Self::Error>;
}Available on crate feature
std only.Expand description
A camera device that can be inspected and opened.