pub trait PacketSerialization {
// Required methods
fn into_raw_bytes(self) -> Result<BytesMut>;
fn from_raw_bytes(bytes: BytesMut) -> Result<Self>
where Self: Sized;
}Required Methods§
fn into_raw_bytes(self) -> Result<BytesMut>
fn from_raw_bytes(bytes: BytesMut) -> Result<Self>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".