Expand description
Output formats.
A Format turns a crate::Record into bytes on a writer. Three
formats ship in the crate and are gated by feature flags. Custom
formats can be supplied as a closure or by implementing the trait.
All formatters write directly to the supplied writer without intermediate allocation.
Structs§
- Human
Format human - Human-readable formatter.
- Json
Format json - JSON formatter.
- Logfmt
Format logfmt - logfmt formatter. See module docs for the wire format.
Traits§
- Format
- A record-to-bytes serializer.