Skip to main content

CalculatorLocalServerHandler

Trait CalculatorLocalServerHandler 

Source
pub trait CalculatorLocalServerHandler<___T = Channel>
where ___T: Transport,
{ // Required methods fn add( &mut self, request: Request<Add, ___T>, responder: Responder<Add, ___T>, ) -> impl Future<Output = ()>; fn divide( &mut self, request: Request<Divide, ___T>, responder: Responder<Divide, ___T>, ) -> impl Future<Output = ()>; fn clear(&mut self) -> impl Future<Output = ()>; // Provided method fn on_unknown_interaction( &mut self, ordinal: u64, ) -> impl Future<Output = ()> { ... } }
Expand description

A server handler for the Calculator protocol.

See Calculator for more details.

Required Methods§

Source

fn add( &mut self, request: Request<Add, ___T>, responder: Responder<Add, ___T>, ) -> impl Future<Output = ()>

Source

fn divide( &mut self, request: Request<Divide, ___T>, responder: Responder<Divide, ___T>, ) -> impl Future<Output = ()>

Source

fn clear(&mut self) -> impl Future<Output = ()>

Provided Methods§

Source

fn on_unknown_interaction(&mut self, ordinal: u64) -> impl Future<Output = ()>

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<___H, ___T> CalculatorLocalServerHandler<___T> for Local<___H>
where ___H: CalculatorServerHandler<___T>, ___T: Transport,

Source§

async fn add( &mut self, request: Request<Add, ___T>, responder: Responder<Add, ___T>, )

Source§

async fn divide( &mut self, request: Request<Divide, ___T>, responder: Responder<Divide, ___T>, )

Source§

async fn clear(&mut self)

Source§

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

Implementors§