Trait PacketReadable

Source
pub trait PacketReadable {
    type ReadError;

    // Required method
    fn read_packet<D: PacketDeserializable + Send + Sync + 'static>(
        &mut self,
    ) -> impl Future<Output = Result<D, Self::ReadError>>;
}

Required Associated Types§

Required Methods§

Source

fn read_packet<D: PacketDeserializable + Send + Sync + 'static>( &mut self, ) -> impl Future<Output = Result<D, Self::ReadError>>

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.

Implementors§