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