Skip to main content

EchoLauncherServerHandler

Trait EchoLauncherServerHandler 

Source
pub trait EchoLauncherServerHandler<___T: Transport = Channel> {
    // Required methods
    fn get_echo(
        &mut self,
        request: Request<GetEcho, ___T>,
        responder: Responder<GetEcho, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn get_echo_pipelined(
        &mut self,
        request: Request<GetEchoPipelined, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the EchoLauncher protocol.

See EchoLauncher for more details.

Required Methods§

Source

fn get_echo( &mut self, request: Request<GetEcho, ___T>, responder: Responder<GetEcho, ___T>, ) -> impl Future<Output = ()> + Send

Source

fn get_echo_pipelined( &mut self, request: Request<GetEchoPipelined, ___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§