Skip to main content

dispatch_request

Function dispatch_request 

Source
pub fn dispatch_request<R, E>(
    request: &Value,
    rewrite: &R,
    exec: &E,
) -> Option<Value>
where R: Fn(&str) -> Option<String>, E: Fn(&str, &str) -> Execution,
Expand description

Dispatch a parsed JSON-RPC request to the appropriate method handler.