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§
- json
json - Encoding for tasks using json
Structs§
- Identity
Codec - A codec that performs no transformation, returning the input value as-is.
- RawData
Backend - Wrapper that skips decoding and works directly with compact representation.
Traits§
- Codec
- A trait for converting values between a type
Tand a more compact or transport-friendly representation for aBackend. Examples include json and bytes.