pub trait FrameDecoder: Send {
// Required methods
fn decode_next(&mut self) -> Option<Frame>;
fn eof(&self) -> bool;
}Expand description
A frame-level decoder that produces raw Frame values.
Implementations wrap a container demuxer + codec decoder.
When the input is exhausted decode_next returns None
and eof returns true.
Required Methods§
Sourcefn decode_next(&mut self) -> Option<Frame>
fn decode_next(&mut self) -> Option<Frame>
Decode the next frame from the input stream.
Returns None when no more frames are available (end-of-stream).