pub trait FrameSource: Send + 'static {
// Required method
fn capture_frame<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Arc<Frame>, CaptureError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
A source of frames. The session’s capture loop calls capture_frame at the
session’s capture rate; implementations should return the freshest frame
available. Real backends (scap) arrive in a later milestone.
Required Methods§
fn capture_frame<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<Arc<Frame>, CaptureError>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".