pub trait MethodHandler<Rq, Rsp> { // Required method fn handle(&self, ctx: &mut Context<'_>, request: &Rq) -> Result<Rsp>; }
Handler for a RPC method.
Invoke the method implementation and return a response.