Re-exportsยง
pub use builder::ServerBuilder;pub use channel::Channel;pub use pubsub_service::PubSubRPCMethod;pub use pubsub_service::PubSubRPCService;pub use service::RPCMethod;pub use service::RPCService;
Modulesยง
- acceptor ๐
- Acceptors used by the stream-based and WebSocket backends. Accepts a connection, wraps it with a codec, and hands the split halves to the server.
- builder
- channel
- dispatch ๐
- Request sanity check and method dispatch.
- http ๐
- HTTP server: HTTP/1.1 + HTTP/2 over TCP, optional HTTP/3 over QUIC.
- pubsub_
service - quic ๐
- QUIC transport: one request per stream, with separate notification streaming for pubsub.
- service
Structsยง
- Server
- A JSON-RPC 2.0 server.
- Server
Config ๐
Enumsยง
- Server
Backend ๐ - One variant per backend family. Stream-based transports share
a single
AsyncAcceptor; QUIC and HTTP have their own loops.
Constantsยง
- CHANNEL_
SUBSCRIPTION_ ๐BUFFER_ SIZE - FAILED_
TO_ PARSE_ ERROR_ MSG - INVALID_
REQUEST_ ERROR_ MSG - METHOD_
NOT_ FOUND_ ERROR_ MSG - RESPONSE_
QUEUE_ ๐SIZE - Bound on the per-connection outbound response queue.
- UNSUPPORTED_
JSONRPC_ VERSION
Traitsยง
- WsCodec
- Bound on the WebSocket codec generic. With the
wsfeature it requiresJsonRpcWsCodec; otherwise it accepts any clonable type (the codec is unused) so callers can passJsonCodecunchanged.
Functionsยง
- create_
backend ๐ - request_
task ๐ - stream_
reader_ ๐task - stream_
writer_ ๐task