Expand description
Shared durable envelope codec and validation errors.
Structs§
- Encoded
Envelope - One encoding and the envelope derived from those exact bytes.
- Envelope
Probe - Identifying prefix of a durable envelope document.
- Verified
Envelope - An envelope whose framing was verified on read or derived on write.
Enums§
- Envelope
Codec Error - Failure vocabulary shared by every envelope codec. Messages are envelope-generic; the wrapping error names the object (and its key) the bytes came from.
Functions§
- decode_
json_ envelope - Decodes one JSON-bodied envelope, then checks its kind, version, checksum, and payload. Unknown envelope fields are rejected for every durable family.
- encode_
json_ envelope - Serializes the payload once and derives framing from those same bytes.
- verify_
kind - Requires the probed kind to be exactly
expected. - verify_
payload_ checksum - Requires the stored checksum to match the payload bytes as stored.
- verify_
version - Requires the probed format version to be exactly what this build writes
for
kind— no envelope family tolerates version skew.