pub fn reset(&mut self) {
        self.read_from = 0;
        self.write_at = 0;
        self.packets.clear();
    }
/// Clears all packets from the logical stream and resets the stream's packet queue.
Clears all packets from the logical stream and resets the stream's packet queue.
Clears all packets from the logical stream and resets the stream ' s packet queue .
pub fn reset(&mut self) {
        self.read_from = 0;
        self.write_at = 0;
        self.packets.clear();
    }
pub fn reset ( & mut self ) { self . read_from = 0 ; self . write_at = 0 ; self . packets . clear ( ) ; }
Clears all packets from the logical stream and resets the stream's packet queue.
Clears all packets from the logical stream and resets the stream ' s packet queue .
&mut self
&mut self