Crate jsonrpc

Source
Expand description

§Rust JSON-RPC Library

Rust support for the JSON-RPC 2.0 protocol.

Re-exports§

pub extern crate base64;
pub extern crate minreq;
pub extern crate serde;
pub extern crate serde_json;
pub use http::simple_http;simple_http
pub use http::minreq_http;minreq_http
pub use crate::client::Client;
pub use crate::client::Transport;
pub use crate::error::Error;

Modules§

client
Client support
error
Error handling
http
HTTP transport modules.
simple_tcpsimple_tcp
This module implements a synchronous transport over a raw std::net::TcpListener. Note that it does not handle TCP over Unix Domain Sockets, see simple_uds for this.
simple_udssimple_uds and non-Windows
This module implements a synchronous transport over a raw std::net::TcpListener.

Structs§

Request
A JSONRPC request object.
Response
A JSONRPC response object.

Functions§

arg
Shorthand method to convert an argument into a boxed serde_json::value::RawValue.
try_arg
Shorthand method to convert an argument into a boxed serde_json::value::RawValue.