Docs.rs
nanorpc-0.2.0-beta.1
nanorpc 0.2.0-beta.1
Docs.rs crate page
ISC
Links
Repository
crates.io
Source
Owners
nullchinchilla
Dependencies
anyhow ^1.0.66
normal
fastrand ^1.8.0
normal
log ^0.4.17
normal
nanorpc-derive ^0.2.0-beta.1
normal
serde ^1.0.147
normal
serde_json ^1.0.87
normal
thiserror ^1.0.37
normal
anyhow ^1.0.66
dev
argh ^0.1.9
dev
reqwest ^0.11.12
dev
smol ^1.2.5
dev
tokio ^1.21.2
dev
warp ^0.3.3
dev
Versions
46.88%
of the crate is documented
Go to latest stable release
Platform
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-pc-windows-msvc
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate nanorpc
nanorpc
0.2.0-beta.1
All Items
Crate Items
Structs
Enums
Traits
Attribute Macros
Crate
nanorpc
Copy item path
Source
Structs
§
DynRpc
Transport
A type-erased
RpcTransport
that uses
anyhow::Error
for transport errors.
FnService
An
RpcService
backed by an async function or closure.
Jrpc
Error
A raw JSON-RPC error.
Jrpc
Request
A raw JSON-RPC request.
Jrpc
Response
A raw JSON-RPC response.
OrService
An
RpcService
that tries one service and falls back to another.
Server
Error
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