Expand description
The partition-decoder plugin system.
A decoder turns a partition’s raw bytes into a renderer-agnostic tree of
named fields (FieldNode). The CLI and HTML renderers both consume that
tree, so a decoder is written once and displayed everywhere.
Decoders are registered statically (compiled into the binary). Adding a new
format means writing a module that implements PartitionDecoder and adding
one line to DecoderRegistry::with_builtins. The trait is deliberately
object-safe and the data types carry no borrowed state, so a future dynamic
(shared-library) backend could be added behind a feature without reworking
any decoder.
Structs§
- Decoded
- The result of decoding one partition.
- Decoder
Registry - An ordered set of decoders. The first decoder whose
matchesreturns true wins;RawDecoderis always last and matches everything. - Field
Node - One node in a decoded field tree.
- Partition
Meta - Metadata handed to a decoder alongside the partition’s bytes.
- PfsNode
Decoder - PfsSession
Decoder - RawDecoder
Enums§
- Field
Value - A decoded field’s value, kept independent of any output format.
Traits§
- Partition
Decoder - A plugin that turns partition bytes into a field tree.