Skip to main content

Module codec

Module codec 

Source
Expand description

JSON codec for JSON-RPC message framing.

Provides JsonCodec which encodes/decodes serde_json::Value messages with a configurable max payload size (default 4MB).

Structs§

JsonCodec
Default JSON codec with configurable max payload size.

Constants§

DEFAULT_MAX_BUFFER_SIZE 🔒

Traits§

Codec
Encodes and decodes messages from a wire-level type.
JsonRpcCodec
Byte-stream codec used for TCP, TLS, Unix, QUIC, and HTTP.
JsonRpcWsCodec
WebSocket-message codec used for ws:// and wss:// endpoints.

Type Aliases§

ByteBuffer
Back-compat alias used as the wire type in Codec<W> for byte-stream framing.