pub trait CaptureSource: Send + Sync {
// Required methods
fn descriptor(&self) -> &CaptureDescriptor;
fn next_frame(&self) -> Option<FrameLease>;
}Expand description
Required Methods§
Sourcefn descriptor(&self) -> &CaptureDescriptor
fn descriptor(&self) -> &CaptureDescriptor
Descriptor for this source.
Sourcefn next_frame(&self) -> Option<FrameLease>
fn next_frame(&self) -> Option<FrameLease>
Pull the next frame; concrete backends decide how to block/yield.