[][src]Trait ttrpc::MethodHandler

pub trait MethodHandler {
    fn handler(&self, ctx: TtrpcContext, req: Request) -> Result<()>;
}

Trait that implements handler which is a proxy to the desired method (sync).

Required methods

fn handler(&self, ctx: TtrpcContext, req: Request) -> Result<()>

Loading content...

Implementors

Loading content...