Skip to main content

Module codec

Module codec 

Source
Expand description

Serialized payloads and value codecs.

Structs§

FromSync
Adapts a SyncCodec to Codec.
JsonCodec
The default codec: serde_json text.
Payload
Serializer output: UTF-8 text or opaque binary bytes.

Constants§

JSON_UNDEFINED_SENTINEL
Payload text that TypeScript writes for an undefined value.

Traits§

Codec
Encodes cached values to payloads and decodes them back.
SyncCodec
A synchronous codec. Wrap it in FromSync where a Codec is expected.