fractal::contrib::qr_code_scanner::camera

Trait CameraExt

Source
pub trait CameraExt: 'static {
    // Required methods
    async fn has_cameras(&self) -> bool;
    async fn paintable(&self) -> Option<CameraPaintable>;
}

Required Methods§

Source

async fn has_cameras(&self) -> bool

Whether any cameras are available.

Source

async fn paintable(&self) -> Option<CameraPaintable>

The paintable displaying the camera.

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<O: IsA<Camera>> CameraExt for O