pub trait CalculatorServerHandler<___T = Channel>where
___T: Transport,{
// Required methods
fn add(
&mut self,
request: Request<Add, ___T>,
responder: Responder<Add, ___T>,
) -> impl Future<Output = ()> + Send;
fn divide(
&mut self,
request: Request<Divide, ___T>,
responder: Responder<Divide, ___T>,
) -> impl Future<Output = ()> + Send;
fn clear(&mut self) -> impl Future<Output = ()> + Send;
// Provided method
fn on_unknown_interaction(
&mut self,
ordinal: u64,
) -> impl Future<Output = ()> + Send { ... }
}Expand description
A server handler for the Calculator protocol.
See Calculator for more details.
Required Methods§
fn add( &mut self, request: Request<Add, ___T>, responder: Responder<Add, ___T>, ) -> impl Future<Output = ()> + Send
fn divide( &mut self, request: Request<Divide, ___T>, responder: Responder<Divide, ___T>, ) -> impl Future<Output = ()> + Send
fn clear(&mut self) -> impl Future<Output = ()> + Send
Provided 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.