Trait ClientProtocol
pub trait ClientProtocol<H, T = Channel>: Sized + 'staticwhere
T: Transport,{
// Required method
fn on_event(
handler: &mut H,
sender: &ClientSender<Self, T>,
ordinal: u64,
buffer: <T as Transport>::RecvBuffer,
) -> impl Future<Output = ()> + Send;
}
Expand description
A protocol which supports clients.
Required Methods§
fn on_event(
handler: &mut H,
sender: &ClientSender<Self, T>,
ordinal: u64,
buffer: <T as Transport>::RecvBuffer,
) -> impl Future<Output = ()> + Send
fn on_event( handler: &mut H, sender: &ClientSender<Self, T>, ordinal: u64, buffer: <T as Transport>::RecvBuffer, ) -> impl Future<Output = ()> + Send
Handles a received client event with the given handler.
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.