pub trait CalculatorClientHandler<___T: Transport> {
// Required method
fn on_error(
&mut self,
sender: &ClientSender<Calculator, ___T>,
event: Response<OnError, ___T>,
) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
sender: &ClientSender<Calculator, ___T>,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}
Expand description
A client handler for the Calculator protocol.
See Calculator
for more details.
Required Methods§
fn on_error( &mut self, sender: &ClientSender<Calculator, ___T>, event: Response<OnError, ___T>, ) -> impl Future<Output = ()> + Send
Provided Methods§
fn on_unknown_interaction( &mut self, sender: &ClientSender<Calculator, ___T>, ordinal: u64, ) -> impl Future<Output = ()> + Send
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.