Skip to main content

Crate configbuilder_pattern_loader

Crate configbuilder_pattern_loader 

Source
Expand description

configbuilder-pattern-loader — the loader domain’s trait contract (Loader, LoaderOps, ConfigSection, OptionalSection, SectionLoaderBound, the Feature*Ops traits, ConfigError) and its tech-agnostic reference implementation: DefaultLoader (the { ops: Box<dyn LoaderOps> } generic dispatch shell, renamed off *Impl here — it doesn’t care what real LoaderOps implementor is boxed inside) and the in-memory feature bookkeeping (FeatureRegistry/FeatureRecordBuilder/FeatureMetadata/FeatureState/ FeatureSummary/OverrideSource/Topology).

The real, filesystem/TOML-backed LoaderOps implementor lives in configbuilder-svc-loader-spi instead.

Macros§

load_in_order
Load a set of optional feature sections in dependency order.

Structs§

DefaultLoader
Reference Loader/FeatureLoader implementation: a generic dispatch shell over any real LoaderOps implementor.
FeatureMetadata
Static documentation and ownership annotations for an optional feature.
FeatureRecord
A snapshot of one optional feature’s resolved state.
FeatureRecordBuilder
Fluent builder for FeatureRecord.
FeatureRegistry
Collects feature-load metadata at startup for all optional TOML sections.
FeatureSummary
A point-in-time snapshot of every feature loaded through the registry facade.
LoadedFeature
The full result of loading an optional feature section.
RawFeature
Raw output of a feature load before generic deserialisation.
Topology
Topological dependency resolver for feature load ordering.

Enums§

ConfigError
Errors returned by config loading and validation operations.
FeatureState
Whether an optional TOML section is present and active.
OnError
Controls what the feature registry does when OptionalSection::validate_enabled returns an error for an otherwise-enabled section.
OverrideSource
Records which external control overrode a feature’s natural TOML state.

Traits§

ConfigSection
Marks a typed struct as the owner of a named TOML section.
FeatureLoader
Load optional TOML sections with configurable enable/disable precedence.
FeatureRecordBuilderOps
Fluent builder operations for constructing FeatureRecord instances.
FeatureRegistryOps
Startup feature registry: collection, dependency validation, and observation.
FeatureStateOps
Operations on FeatureState<T> — presence-driven feature gate.
FeatureSummaryOps
Read-only queries on a crate::FeatureSummary snapshot.
Loader
Load typed TOML sections from a layered config chain.
LoaderOps
Type-erased view of a config source used internally by crate::DefaultLoader.
OptionalSection
Marks a typed struct as an opt-in TOML feature section.
SectionLoaderBound
API contract marker for the reference section loader.
TopologyOps
Topological dependency resolver for feature load ordering.