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.
Required Associated Types§
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>
Implementors§
Source§impl CameraDevice for MacosCameraDevice
Available on macOS only.
impl CameraDevice for MacosCameraDevice
Available on macOS only.