pub trait PacketSendable:
AsyncWriteExt
+ Send
+ Sync
+ Unpin {
type SendError;
// Required method
fn send_packet<D: PacketSerializable + Send + Sync + 'static>(
&mut self,
packet: &D,
) -> impl Future<Output = Result<(), Self::SendError>>;
}Required Associated Types§
Required Methods§
fn send_packet<D: PacketSerializable + Send + Sync + 'static>( &mut self, packet: &D, ) -> impl Future<Output = Result<(), Self::SendError>>
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.