pub trait CameraManager {
type Device: CameraDevice;
type Error: Error;
// Required methods
fn discover_devices(
&self,
) -> Result<impl Iterator<Item = Self::Device>, Self::Error>;
fn default_device(&self) -> Result<Option<Self::Device>, Self::Error>;
}Expand description
Discover and inspect camera devices.
Required Associated Types§
Required Methods§
fn discover_devices( &self, ) -> Result<impl Iterator<Item = Self::Device>, Self::Error>
fn default_device(&self) -> Result<Option<Self::Device>, Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl CameraManager for MacosCameraManager
Available on macOS and crate feature std only.
impl CameraManager for MacosCameraManager
Available on macOS and crate feature
std only.