Skip to main content

ImageFrameFuture

Type Alias ImageFrameFuture 

Source
pub type ImageFrameFuture<'a> = Pin<Box<dyn Future<Output = Result<ImageFrame, ImageDecodeError>> + 'a>>;
Expand description

A frame being decoded. Flutter’s Future<ui.FrameInfo>.

It borrows the codec it came from until it arrives, which is what keeps one codec to one frame at a time.

Aliased Type§

#[repr(transparent)]
pub struct ImageFrameFuture<'a> { /* private fields */ }