Skip to main content

Module framing

Module framing 

Source
Expand description

Async length-prefixed rkyv framing for daemon IPC.

Wire format per frame:

  u16 LE   proto_version
  u32 LE   payload_length (<= MAX_FRAME_BYTES)
  [u8]     rkyv-archived Frame

The version is checked before deserialization so mismatched daemons and clients fail with a clear error rather than rkyv validation noise.

Constants§

MAX_FRAME_BYTES

Functions§

read_frame
Read one length-prefixed rkyv-archived Frame from r.
write_frame