/// Maybe consumes the next complete packet.
Maybe consumes the next complete packet.
Maybe consumes the next complete packet .
pub fn consume_packet(&mut self) {
        match self.packets.pop_front() {
            Some(packet_len) => {
                self.read_from += packet_len;
            },
            None => ()
        }
    }
pub fn consume_packet ( & mut self ) { match self . packets . pop_front ( ) { Some ( packet_len ) => { self . read_from += packet_len ; } , None => ( ) } }
Maybe consumes the next complete packet.
Maybe consumes the next complete packet .
&mut self