Skip to main content

CameraManager

Trait CameraManager 

Source
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§

Source

fn discover_devices( &self, ) -> Result<impl Iterator<Item = Self::Device>, Self::Error>

Source

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.