CalculatorClientHandler

Trait CalculatorClientHandler 

Source
pub trait CalculatorClientHandler<___T = Channel>
where ___T: Transport,
{ // Required method fn on_error( &mut self, request: Request<OnError, ___T>, ) -> impl Future<Output = ()> + Send; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> + Send { ... } }
Expand description

A client handler for the Calculator protocol.

See Calculator for more details.

Required Methods§

Source

fn on_error( &mut self, request: Request<OnError, ___T>, ) -> impl Future<Output = ()> + Send

Provided Methods§

Source

fn on_unknown_interaction( &mut self, 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.

Implementations on Foreign Types§

Source§

impl<___T> CalculatorClientHandler<___T> for IgnoreEvents
where ___T: Transport,

Source§

async fn on_error(&mut self, _: Request<OnError, ___T>)

Source§

async fn on_unknown_interaction(&mut self, _: u64)

Implementors§