Crate jsonrpc_async

Source
Expand description

§Rust JSON-RPC Library

Rust support for the JSON-RPC 2.0 protocol.

Re-exports§

pub use client::Client;
pub use client::Transport;
pub use error::Error;

Modules§

client
Client support
error
Error handling
simple_http
This module implements a minimal and non standard conforming HTTP 1.0 round-tripper that works with the bitcoind RPC server. This can be used if minimal dependencies are a goal and synchronous communication is ok.

Structs§

Request
A JSONRPC request object
Response
A JSONRPC response object

Functions§

arg
Shorthand method to convert an argument into a Box<serde_json::value::RawValue>.
try_arg
Shorthand method to convert an argument into a Box<serde_json::value::RawValue>. Since serializers rarely fail, it’s probably easier to use arg instead.