Trait emmapack::PacketDeserializable

source ·
pub trait PacketDeserializable: Sized + 'static {
    type DeserializeError: Send;

    // Required method
    fn deserialize_packet<'a>(
        data: &'a [u8],
    ) -> Result<Self, Self::DeserializeError>
       where Self: Sized;
}

Required Associated Types§

Required Methods§

source

fn deserialize_packet<'a>( data: &'a [u8], ) -> Result<Self, Self::DeserializeError>
where Self: Sized,

Object Safety§

This trait is not object safe.

Implementors§