Trait Reader

Source
pub trait Reader: Send + Sync {
    // Required method
    fn next_packet(&mut self) -> Result<&[u8], Box<dyn Error>>;
}
Expand description

Trait describing a packet reader

Required Methods§

Source

fn next_packet(&mut self) -> Result<&[u8], Box<dyn Error>>

Should return the next packet off of the wire

Implementors§