Struct json_rpc::Server [] [src]

pub struct Server {
    // some fields omitted
}

Methods

impl Server
[src]

fn new() -> Server

fn register_method<F>(&mut self, method: &str, f: F) where F: Fn(Json) -> Result<JsonError> + 'static + Send + Sync

fn request<F>(&self, str_request: String, f_response: F) where F: FnOnce(String) + Send + 'static