Crate nanorpc

Crate nanorpc 

Source

Structs§

DynRpcTransport
A type-erased RpcTransport that uses anyhow::Error for transport errors.
FnService
An RpcService backed by an async function or closure.
JrpcError
A raw JSON-RPC error.
JrpcRequest
A raw JSON-RPC request.
JrpcResponse
A raw JSON-RPC response.
OrService
An RpcService that tries one service and falls back to another.
ServerError
A server-returned error message.

Enums§

JrpcId
A raw JSON-RPC request ID.

Traits§

RpcService
Server-side RPC logic.
RpcTransport
Client-side transport for sending JSON-RPC requests.

Attribute Macros§

nanorpc_derive
This procedural macro should be put on top of an async trait with name ending in ...Protocol, defining all the function signatures in the RPC protocol. Given a trait of name FooProtocol, the macro