Skip to main content

EchoLocalServerHandler

Trait EchoLocalServerHandler 

Source
pub trait EchoLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn echo_string(
        &mut self,
        request: Request<EchoString, ___T>,
        responder: Responder<EchoString, ___T>,
    ) -> impl Future<Output = ()>;
    fn send_string(
        &mut self,
        request: Request<SendString, ___T>,
    ) -> impl Future<Output = ()>;
}
Expand description

A server handler for the Echo protocol.

See Echo for more details.

Required Methods§

Source

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

Source

fn send_string( &mut self, request: Request<SendString, ___T>, ) -> impl Future<Output = ()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<___H, ___T> EchoLocalServerHandler<___T> for Local<___H>
where ___H: EchoServerHandler<___T>, ___T: Transport,

Source§

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

Source§

async fn send_string(&mut self, request: Request<SendString, ___T>)

Implementors§