Skip to main content

EchoServerHandler

Trait EchoServerHandler 

Source
pub trait EchoServerHandler<___T: Transport = Channel> {
    // Required methods
    fn echo_string(
        &mut self,
        request: Request<EchoString, ___T>,
        responder: Responder<EchoString, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn send_string(
        &mut self,
        request: Request<SendString, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
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 = ()> + Send

Source

fn send_string( &mut self, request: Request<SendString, ___T>, ) -> 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.

Implementors§