Skip to main content

FrameSink

Trait FrameSink 

Source
pub trait FrameSink:
    Send
    + Sync
    + 'static {
    // Required method
    fn frames(&self, frames: Vec<Frame>);
}
Expand description

A consumer of the frames a capture encodes.

Required Methods§

Source

fn frames(&self, frames: Vec<Frame>)

Every stripe of one encoded frame, in capture order, each sharing the encoder’s buffer.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Fn(Vec<Frame>) + Send + Sync + 'static> FrameSink for F