logo
pub trait StreamDecoder {
    fn received(&mut self, data: &[u8]);
    fn decode(&mut self) -> Result<Frame<'_>, DecodeError>;
}
Available on unstable only.

Required Methods

Push received data to the decoder. The decoder stores it internally, and makes decoded frames available through decode.

Implementors