pub trait AzBufwhere
Self: Sized,{
// Required methods
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>;
fn azalea_write(&self, buf: &mut impl Write) -> Result<()>;
}Expand description
A trait that’s implemented on types that are used by the Minecraft protocol.
Required Methods§
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>
fn azalea_write(&self, buf: &mut impl Write) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.