Trait irox_tools::packetio::Packetization
source · 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§
sourcefn read_next_packet(&mut self, source: &mut T) -> Result<PacketData, Error>
fn read_next_packet(&mut self, source: &mut T) -> Result<PacketData, Error>
Reads the next packet from the source reader