Skip to main content

Module wire

Module wire 

Source
Expand description

Protocol-independent envelopes. Raw routing does not need to decode these.

Structs§

Envelope
A decoded envelope without a closed application-message enum.

Enums§

WireError
Errors from checked envelope/payload decoding, with no untrusted values.

Functions§

decode_record
Decode exactly one record, rejecting duplicate keys and trailing data.
decode_value
Decode one CBOR value with the same outer byte bound as framing.
encode
Serialize a record without including serializer diagnostics in errors.
validate_record
Validate keys of a single record without interpreting unknown field values.