use crate::frame::Frame;
pub trait CameraStream {
type Frame<'a>: Frame
where
Self: 'a;
type Error: core::error::Error;
fn start<F>(&mut self, callback: F) -> Result<(), Self::Error>
where
F: FnMut(&Self::Frame<'_>) + Send + 'static;
fn stop(&mut self) -> Result<(), Self::Error>;
}