[][src]Trait ttrpc::MethodHandler

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

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

Required methods

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

Loading content...

Implementors

Loading content...