pub trait CameraSource: Send + Sync {
// Required methods
fn configured(&self) -> bool;
fn snapshot(&self) -> Result<Vec<u8>, String>;
}Expand description
Source of built-in-camera frames.
Required Methods§
Sourcefn configured(&self) -> bool
fn configured(&self) -> bool
Whether a built-in camera could be reached at all (live mode with a
target). The A1 camera is intermittently off, so true does not
guarantee snapshot will return a frame.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".