azalea_protocol::read

Function read_raw_packet

Source
pub async fn read_raw_packet<'a, R>(
    stream: &'a mut R,
    buffer: &mut BytesMut,
    compression_threshold: Option<u32>,
    cipher: &mut Option<Aes128CfbDec>,
) -> Result<Vec<u8>, Box<ReadPacketError>>
where R: AsyncRead + Unpin + Send + Sync,