pub fn read_raw_packet_from_buffer<R>( buffer: &mut Cursor<Vec<u8>>, compression_threshold: Option<u32>, ) -> Result<Option<Box<[u8]>>, Box<ReadPacketError>>where R: AsyncRead + Unpin + Send + Sync,