pub trait Reader: Send + Sync {
// Required method
fn next_packet(&mut self) -> Result<&[u8]>;
}Expand description
Trait describing a packet reader
Required Methods§
Sourcefn next_packet(&mut self) -> Result<&[u8]>
fn next_packet(&mut self) -> Result<&[u8]>
Should return the next packet off of the wire