pub trait Packetization<T: Read> {
    // Required method
    fn read_next_packet(&mut self, source: &mut T) -> Result<PacketData, Error>;
}
Expand description

This trait represents a way to packetize a stream of data

Required Methods§

source

fn read_next_packet(&mut self, source: &mut T) -> Result<PacketData, Error>

Reads the next packet from the source reader

Implementors§