pub trait Decoder: Send {
// Required methods
fn info(&self) -> &VideoInfo;
fn read_frame(&mut self, frame: &mut Frame) -> Result<bool, Error>;
// Provided method
fn next_frame(&mut self) -> Result<Option<Frame>, Error> { ... }
}Expand description
Reads a file’s frames in presentation order.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".