Packetization

Trait Packetization 

Source
pub trait Packetization<T: Bits> {
    // Required method
    fn read_next_packet(&mut self, source: &mut T) -> Result<PacketData, Error>;
}
Available on crate feature alloc only.
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§