pub trait DispatchLocalClientMessage<H, T>: Sized + 'staticwhere
T: Transport,{
// Required method
fn on_event(
handler: &mut H,
ordinal: u64,
flexibility: Flexibility,
body: Body<T>,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>>;
}Expand description
A protocol which dispatches incoming client messages to a local handler.
This is a variant of DispatchClientMessage that does not require
implementing Send and only supports local-thread executors.
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.