Expand description
Fixed-width little-endian envelopes and explicit payload codecs.
Structs§
- Decode
Context - Stateful resource budget shared by one complete protocol decode.
- Decoded
Message - An owned, fully validated decoded message and its common metadata.
- Envelope
- Caller-provided metadata for a newly encoded message.
- Limits
- Bounded decoder policy applied before a protocol allocates or creates records.
- Relative
Range - A checked relative byte range within one containing record.
Enums§
- Decode
Error - Decoder failures; values remain bounded and contain no peer-provided text.
- Encode
Error - Encoder failures; values remain bounded and contain no peer-provided text.
- Limit
Kind - Decoder resource limit that was exceeded.
Constants§
- ENVELOPE_
LEN - Bytes occupied by the common message envelope.
- MESSAGE_
MAGIC - Wire signature at the start of every encoded message.
- VERSION_
MAJOR - Current incompatible wire revision.
- VERSION_
MINOR - Current exact wire revision; decoders reject any different minor value.
Traits§
- Protocol
- Explicit protocol payload codec.
Functions§
- decode_
message - Validates the common envelope, bounds, and schema before decoding a payload.
- encode_
message - Encodes a common envelope followed by an explicitly encoded payload.