pub trait MethodHandlerDispatch {
    // Required methods
    fn get_descriptor(&self) -> &MethodDescriptor;
    fn dispatch(&self, ctx: &Context, request: Request) -> Result<Response>;
}
Expand description

Dispatcher for a RPC method.

Required Methods§

source

fn get_descriptor(&self) -> &MethodDescriptor

Get method descriptor.

source

fn dispatch(&self, ctx: &Context, request: Request) -> Result<Response>

Dispatch request.

Implementors§