[−][src]Trait easy_jsonrpc::Handler
Handles jsonrpc calls.
Required methods
fn handle(&self, method: &str, params: Params) -> Result<Value, Error>
Type-check params and call method if method exists. This method is implemented automatically by the rpc macro.
Provided methods
fn handle_request(&self, raw_request: Value) -> Option<Value>
Parses raw_request as a jsonrpc request, handles request according to the jsonrpc spec. As per the spec, requests consisting of only notifications recieve no response. A lack of response is represented as None. Any response which should be returned to the client is represented as Some(value), where value can be directy serialized and sent as a response.