pub trait DispatchClientMessage<H, T = Channel>: Sized + 'staticwhere
T: Transport,{
// Required method
fn on_event(
handler: &mut H,
ordinal: u64,
buffer: <T as Transport>::RecvBuffer,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>> + 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.