Trait emmapack::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>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> PacketReadable for T
where T: AsyncRead + Send + Sync + Unpin,