var searchIndex = {}; searchIndex["jsonrpc"] = {"doc":"# Rust JSON-RPC Library","items":[[3,"Request","jsonrpc","A JSONRPC request object",null,null],[12,"method","","The name of the RPC call",0,null],[12,"params","","Parameters to the RPC call",0,null],[12,"id","","Identifier for this Request, which should appear in the response",0,null],[3,"Response","","A JSONRPC response object",null,null],[12,"result","","A result if there is one, or null",1,null],[12,"error","","An error if there is one, or null",1,null],[12,"id","","Identifier from the request",1,null],[0,"client","","# Client support",null,null],[3,"Client","jsonrpc::client","A handle to a remote JSONRPC server",null,null],[11,"fmt","","",2,null],[11,"clone","","",2,null],[11,"new","","Creates a new client",2,{"inputs":[{"name":"string"},{"name":"option"},{"name":"option"}],"output":{"name":"client"}}],[11,"send_request","","Sends a request to a client",2,null],[11,"build_request","","Builds a request",2,null],[11,"last_nonce","","Accessor for the last-used nonce",2,null],[0,"error","jsonrpc","# Error handling",null,null],[3,"RpcError","jsonrpc::error","A JSONRPC error object",null,null],[12,"code","","The integer identifier of the error",3,null],[12,"message","","A string describing the error",3,null],[12,"data","","Additional data specific to the error",3,null],[4,"Error","","A library error",null,null],[13,"Json","","Json error",4,null],[13,"BadStatus","","Client HTTP status error",4,null],[13,"Hyper","","Client error",4,null],[13,"Rpc","","Error response",4,null],[13,"NoErrorOrResult","","Response has neither error nor result",4,null],[4,"StandardError","","Standard error responses, as described at at\nhttp://www.jsonrpc.org/specification#error_object",null,null],[13,"ParseError","","Invalid JSON was received by the server.\nAn error occurred on the server while parsing the JSON text.",5,null],[13,"InvalidRequest","","The JSON sent is not a valid Request object.",5,null],[13,"MethodNotFound","","The method does not exist / is not available.",5,null],[13,"InvalidParams","","Invalid method parameter(s).",5,null],[13,"InternalError","","Internal JSON-RPC error.",5,null],[5,"standard_error","","Create a standard error responses",null,{"inputs":[{"name":"standarderror"},{"name":"option"}],"output":{"name":"rpcerror"}}],[5,"result_to_response","","Converts a Rust `Result` to a JSONRPC response object",null,{"inputs":[{"name":"result"},{"name":"jsonvalue"}],"output":{"name":"response"}}],[11,"fmt","","",4,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"clone","","",3,null],[11,"serialize","","",3,null],[11,"deserialize","","",3,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"eq","jsonrpc","",0,null],[11,"ne","","",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"result","","Extract the result from a response",1,null],[11,"into_result","","Extract the result from a response, consuming the response",1,null],[11,"check_error","","Return the RPC error, if there was one, but do not check the result",1,null],[11,"serialize","","",0,null],[11,"deserialize","","",0,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"serialize","","",1,null],[11,"deserialize","","",1,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[14,"serde_struct_serialize!","","",null,null],[14,"serde_struct_deserialize!","","",null,null]],"paths":[[3,"Request"],[3,"Response"],[3,"Client"],[3,"RpcError"],[4,"Error"],[4,"StandardError"]]}; initSearch(searchIndex);