pub trait DispatchServerMessage<H, T>: Sized + 'staticwhere
T: Transport,{
// Required methods
fn on_one_way(
handler: &mut H,
message: Message<T>,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>> + Send;
fn on_two_way(
handler: &mut H,
message: Message<T>,
responder: Responder<T>,
) -> impl Future<Output = Result<(), ProtocolError<<T as Transport>::Error>>> + Send;
}Expand description
A protocol which dispatches incoming server 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.