Something went wrong. Try again.
A minecraft server software written in Rust
Something went wrong. Try again.
123456789101112131415161718use crate::net::codec::data_type::DataType;
pub struct PrefixedArray;
// TODO: implement this in a sensible way
impl DataType for PrefixedArray { type Value = u8;
async fn read<R: tokio::io::AsyncReadExt + Unpin>(stream: &mut R) -> anyhow::Result<Self::Value> { Ok(0x00) }
async fn write<R: tokio::io::AsyncWriteExt + Unpin>(stream: &mut R, value: Self::Value) -> anyhow::Result<()> { Ok(()) }}