Expand description
Frozen v1 Frame envelope codec and consumer-protocol registry.
This direct, transport-free surface is available without broker IPC,
daemon identity, hashing, or an async runtime. Broad broker paths
re-export these exact items for compatibility.
Frozen v1 Frame envelope primitives.
This is the smallest running-process surface for a daemon that already owns its endpoint and its application payload. It contains only the wire envelope, incremental and stream codecs, and payload-protocol registration checks. It deliberately does not select an IPC transport, hash a daemon image, parse configuration, or start a runtime.
The exact wire layout is [u8 framing_version=1][u32 LE body_length][prost Frame]. These values are frozen for v1; broad broker paths re-export the
literal same items from this module for source and type compatibility.
Re-exports§
pub use registry::ADMIN_PAYLOAD_PROTOCOL;pub use registry::BACKEND_HANDLE_PROBE_PAYLOAD_PROTOCOL;pub use registry::CLUD_PAYLOAD_PROTOCOL;pub use registry::CONTROL_PAYLOAD_PROTOCOL;pub use registry::FBUILD_PAYLOAD_PROTOCOL;pub use registry::HANDOFF_PAYLOAD_PROTOCOL;pub use registry::PROTOCOL_VERSION;pub use registry::SESSION_PAYLOAD_PROTOCOL;pub use registry::ZCCACHE_PAYLOAD_PROTOCOL;
Modules§
- registry
- Frozen v1 payload-protocol registry and consumer registration checks.
Structs§
- Decoded
Framed - One
Framedecoded from the front of a byte buffer. - Frame
- Every control-plane frame on a broker connection.
Enums§
- Frame
Kind - Framing
Error - Errors produced while reading, writing, or incrementally decoding a v1
Frameenvelope. - Payload
Encoding
Constants§
- ENVELOPE_
VERSION - Framing byte for v1. Alias of
FRAMING_VERSION_V1. - FRAME_
HEADER_ BYTES - Length of the outer wire header:
[u8 framing_version][u32 LE body_len]. - FRAMING_
VERSION_ V1 - Framing byte for every v1 broker
Frame. - MAX_
FRAME_ BYTES - Default per-frame size cap (16 MiB). Alias of
MAX_FRAME_SIZE_BYTES. - MAX_
FRAME_ SIZE_ BYTES - Hard ceiling on one v1 frame body.
- MAX_
HELLO_ BYTES - Hello-envelope size cap (64 KiB). Alias of
MAX_HELLO_SIZE_BYTES. - MAX_
HELLO_ SIZE_ BYTES - Hard ceiling on the initial v1 Hello envelope.
Functions§
- encode_
framed - Encode one
Frameinto complete v1 wire bytes. - read_
frame - Read one v1 frame body with the default 16 MiB cap.
- read_
frame_ with_ cap - Read one v1 frame body, rejecting an announced size greater than
max_bytesbefore allocating. - try_
decode_ framed - Incrementally decode one
Framefrom the front ofbuf. - write_
frame - Write one v1 frame body, flush the stream, and return the byte count.