Module codec

Module codec 

Source
Expand description

Utilities for encoding and decoding task arguments and results

§Overview

The Codec trait allows for converting values between a type T and a more compact or transport-friendly representation. This is particularly useful for serializing/deserializing, compressing/expanding, or otherwise encoding/decoding values in a custom format.

The module includes several implementations of the Codec trait, such as IdentityCodec and NoopCodec, as well as a JSON codec when the json feature is enabled.

Modules§

jsonjson
Encoding for tasks using json

Structs§

IdentityCodec
A codec that performs no transformation, returning the input value as-is.
RawDataBackend
Wrapper that skips decoding and works directly with compact representation.

Traits§

Codec
A trait for converting values between a type T and a more compact or transport-friendly representation for a Backend. Examples include json and bytes.