pub trait DispatchClientMessage<H, T: Transport = Channel>: Sized + 'static {
// Required method
fn on_event(
handler: &mut H,
sender: &ClientSender<Self, T>,
ordinal: u64,
buffer: T::RecvBuffer,
) -> impl Future<Output = ()> + Send;
}
Expand description
A protocol which dispatches incoming client messages to a handler.
Required Methods§
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.