json_rpc
pub struct Server { // some fields omitted }
impl Server
fn new() -> Server
fn register_method<F>(&mut self, method: &str, f: F) where F: Fn(Json) -> Result<Json, Error> + 'static + Send + Sync
fn request<F>(&self, str_request: String, f_response: F) where F: FnOnce(String) + Send + 'static