Skip to main content

Module plugin

Module plugin 

Source
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.
DecoderRegistry
An ordered set of decoders. The first decoder whose matches returns true wins; RawDecoder is always last and matches everything.
FieldNode
One node in a decoded field tree.
PartitionMeta
Metadata handed to a decoder alongside the partition’s bytes.
PfsNodeDecoder
PfsSessionDecoder
RawDecoder

Enums§

FieldValue
A decoded field’s value, kept independent of any output format.

Traits§

PartitionDecoder
A plugin that turns partition bytes into a field tree.