Expand description
Frame encoding shared by daemon and client Frame encoding: u32 length prefix + JSON payload
One codec constructor + encode/decode helpers shared by daemon and client so framing parameters can never drift between the two.
Enums§
- Wire
Error - Error type returned from
encode_frameanddecode_frame
Constants§
- MAX_
FRAME_ BYTES - Hard ceiling per frame; larger is a protocol violation
Functions§
- codec
- Builds the shared length-delimited codec (u32 BE prefix, 16 MiB cap)
- decode_
frame - Deserializes one frame payload
- encode_
frame - Serializes one value to a frame payload
- reply_
id - If
frameis a reply, the id it answers;Nonefor anything else, including an event and a frame that is not JSON at all.