pub async fn read_control_packet_type<R: AsyncRead + Unpin>( reader: &mut R, ) -> Result<PacketType>
Read the given reader for a PacketType. In case of success, returns a PacketType instance.
reader
PacketType