Skip to main content

PacketSerialization

Trait PacketSerialization 

Source
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§

Source

fn into_raw_bytes(self) -> Result<BytesMut>

Source

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".

Implementors§