Skip to main content

FrameSink

Type Alias FrameSink 

Source
pub type FrameSink = Arc<Mutex<Option<Vec<u8>>>>;
Expand description

A shared slot the platform writes the final frame’s pixels into. Platform::run yields no value, so a caller that wants the rendered pixels passes one of these via HeadlessPlatform::capture_into and reads it after run returns.

Aliased Type§

pub struct FrameSink { /* private fields */ }