Skip to main content

EchoLauncherLocalServerHandler

Trait EchoLauncherLocalServerHandler 

Source
pub trait EchoLauncherLocalServerHandler<___T: Transport = Channel> {
    // Required methods
    fn get_echo(
        &mut self,
        request: Request<GetEcho, ___T>,
        responder: Responder<GetEcho, ___T>,
    ) -> impl Future<Output = ()>;
    fn get_echo_pipelined(
        &mut self,
        request: Request<GetEchoPipelined, ___T>,
    ) -> impl Future<Output = ()>;
}
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 = ()>

Source

fn get_echo_pipelined( &mut self, request: Request<GetEchoPipelined, ___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> EchoLauncherLocalServerHandler<___T> for Local<___H>
where ___H: EchoLauncherServerHandler<___T>, ___T: Transport,

Source§

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

Source§

async fn get_echo_pipelined(&mut self, request: Request<GetEchoPipelined, ___T>)

Implementors§