Expand description
JSON-RPC 2.0 wire types.
Each method handler receives an RpcRequest (params extracted by
the caller into a typed Value) and returns either an
RpcResponse::Ok with a JSON result or RpcResponse::Err with
a structured crate::error::RpcError.
Spec: https://www.jsonrpc.org/specification
The transport framing (length-prefixed JSON, newline-delimited JSON, etc.) is layered on top by the server loop — this module only concerns itself with the payload shape.
Structs§
- Audit
Notification - Notification pushed to audit subscribers. The wire shape mirrors
audit::event::AuditEvent::to_jsonso subscribers can read bothauditmessages and the daemon’s ownRpcRequestmessages from the same stream. - Audit
Params - RpcError
Body - RpcError
Payload - The body of a JSON-RPC error reply. Serializes as
{"code": ..., "message": "..."}per the spec. - RpcRequest
- JSON-RPC 2.0 request object.
- RpcSuccess
Enums§
- RpcResponse
- JSON-RPC 2.0 response object.