Trait MethodHandler
ttrpc
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).
pub fn handler(&self, ctx: TtrpcContext, req: Request) -> Result<()>