Expand description
§JSON-RPC 2.0 Server Implementation
A pure, transport-agnostic JSON-RPC 2.0 server implementation that follows the specification. This crate provides the core types and dispatch logic for JSON-RPC without any transport-specific code.
§Features
- Full JSON-RPC 2.0 specification compliance
- Transport agnostic (works with HTTP, WebSocket, TCP, etc.)
- Async/await support with
async
feature - Comprehensive error handling
- Support for notifications and requests
Re-exports§
pub use error::JsonRpcError;
pub use error::JsonRpcErrorCode;
pub use request::JsonRpcRequest;
pub use request::RequestParams;
pub use response::JsonRpcResponse;
pub use response::ResponseResult;
pub use notification::JsonRpcNotification;
pub use types::RequestId;
pub use types::JsonRpcVersion;
pub use async::JsonRpcHandler;
pub use async::JsonRpcDispatcher;
pub use async::SessionContext;
Modules§
- async
- dispatch
- error
- error_
codes - Standard JSON-RPC 2.0 error codes
- notification
- request
- response
- types
Constants§
- JSONRPC_
VERSION - JSON-RPC 2.0 version constant