pub trait CameraManager {
type Device: CameraDevice;
type Error: Error;
// Required methods
fn discover_devices(&self) -> Result<Vec<Self::Device>, Self::Error>;
fn default_device(&self) -> Result<Option<Self::Device>, Self::Error>;
}Available on crate feature
std only.Expand description
Discover and inspect camera devices.
Required Associated Types§
Required Methods§
fn discover_devices(&self) -> Result<Vec<Self::Device>, Self::Error>
fn default_device(&self) -> Result<Option<Self::Device>, Self::Error>
Implementors§
Source§impl CameraManager for MacosCameraManager
Available on macOS only.
impl CameraManager for MacosCameraManager
Available on macOS only.