Skip to main content

Module encoding

Module encoding 

Expand description

Journal encoding trait and implementations (JOURNAL_SPEC §6).

Two wire formats are supported:

  • NDJSON — human-readable, useful for debugging and dev.
  • CBOR — compact binary, recommended for production.

Structs§

CborEncoding
CBOR encoding via ciborium.
NdJsonEncoding
Newline-delimited JSON encoding (one JSON object per record, no trailing newline in the encoded payload — the framing layer handles record boundaries).

Enums§

Encoding
Encoding format selector.

Traits§

JournalEncoding
Encode / decode an EngineEvent to / from bytes.

Functions§

encoding_for
Return a boxed encoding implementation for the given format.