pub trait ClientProtocol<T: Transport, H> {
// Required method
fn on_event(handler: &mut H, ordinal: u64, buffer: T::RecvBuffer);
}
Expand description
A protocol which supports clients.
Required Methods§
Sourcefn on_event(handler: &mut H, ordinal: u64, buffer: T::RecvBuffer)
fn on_event(handler: &mut H, ordinal: u64, buffer: T::RecvBuffer)
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.