Skip to main content

FrameDecoder

Trait FrameDecoder 

Source
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§

Source

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).

Source

fn eof(&self) -> bool

Returns true when the input stream is fully consumed.

Implementors§