Module spirit::helpers

source ·
Expand description

Helpers for integrating common configuration patterns.

There are some common patterns of integrating pieces of configuration into an application and make them active. Many of these patterns require registering in multiple callbacks at once to work correctly. Doing it manually is tedious and error prone.

The traits in this module allow registering all the callbacks in one go, making it easier for other crates to integrate such patterns.

Traits

A specialized version of Helper for a piece of extracted configuration.
The basic helper trait.
A variant of the CfgHelper for resources that come in groups.

Functions

A helper to store configuration to some global-ish storage.
A helper to warn about changes to configuration that can’t be updated at runtime.
A helper for one-time initial configuration.