[][src]Trait rpos_drv::ProtocolDecoder

pub trait ProtocolDecoder {
    fn decode(&mut self, buf: &[u8]) -> Result<(usize, Option<Message>)>;
fn reset_decoder(&mut self); }

Protocol decoder

Required methods

Decode bytes and return consumed bytes and message

Reset the decoder status

Loading content...

Implementors

Loading content...