Module msg

Module msg 

Source
Expand description

indexbus-msg envelope helpers.

indexbus-typed is usually what you want for application messages, but having the envelope available is useful for debugging, custom codecs, and tooling.

Modules§

flags
Envelope flag definitions.
prelude
Re-exported curated prelude from indexbus-msg.

Structs§

Header
Parsed v1 envelope header.

Enums§

Error
Errors returned by v1 envelope encode/decode helpers.

Constants§

MAGIC
Envelope magic for v1 (“USM1”).
V1_HEADER_LEN
Minimum v1 header length in bytes.

Functions§

decode_header
Decode a v1 header from input.
encode_header_into
Encode a v1 header into out.