azalea_protocol::write

Function write_raw_packet

Source
pub async fn write_raw_packet<W>(
    raw_packet: &[u8],
    stream: &mut W,
    compression_threshold: Option<u32>,
    cipher: &mut Option<Aes128CfbEnc>,
) -> Result<()>
where W: AsyncWrite + Unpin + Send,