Trait emmapack::PacketSendable

source ·
pub trait PacketSendable:
    AsyncWriteExt
    + Send
    + Sync
    + Unpin {
    type SendError;

    // Required method
    fn send_packet<D: PacketSerializable + Send + Clone + Sync + 'static>(
        &mut self,
        packet: D,
    ) -> impl Future<Output = Result<(), Self::SendError>>;
}

Required Associated Types§

Required Methods§

source

fn send_packet<D: PacketSerializable + Send + Clone + Sync + 'static>( &mut self, packet: D, ) -> impl Future<Output = Result<(), Self::SendError>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> PacketSendable for T
where T: AsyncWriteExt + Send + Sync + Unpin,