Skip to main content

Module encoding

Module encoding 

Source
Expand description

The payload encodings (ADR-0020 decisions 1 and 5).

An encoding is a marker type. A payload type implements Payload<E> once for each encoding its package was built with, so one type can carry several codecs. The set of encodings is closed: Encoding is sealed, so a new encoding is a decision recorded in an ADR and not an impl in another crate.

The marker types do not depend on a cargo feature. A runtime can name every encoding without linking a codec.

Structs§

FlatBuffers
FlatBuffers.
Proto3
proto3.
ReprC
repr(C), the fixed-layout encoding of ADR-0020 decision 1.

Traits§

Encoding
A payload encoding. Only the three marker types of this module implement it.