Crate jsonrpc_rs

Source

Re-exports§

pub use channel::RPCData;
pub use bytes;

Modules§

channel

Structs§

Client
Error
When a rpc call encounters an error, the Response Object MUST contain the error member with a value that is a Object.
Request
A rpc call is represented by sending a Request object to a Server.
Response
When a rpc call is made, the Server MUST reply with a Response, except for in the case of Notifications.
Responser
Server
JSONRPC server context structure.
Version
JSONRPC version type.

Enums§

ErrorCode
The error codes from and including -32768 to -32000 are reserved for pre-defined errors. Any code within this range, but not defined explicitly below is reserved for future use. The error codes are nearly the same as those suggested for XML-RPC at the following url: http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php

Functions§

map_error
Maping other error type to JSONRPC Error

Type Aliases§

RPCError
RPCResult