Module spirit::helpers[][src]

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

CfgHelper

A specialized version of Helper for a piece of extracted configuration.

Helper

The basic helper trait.

IteratedCfgHelper

A variant of the CfgHelper for resources that come in groups.

Functions

cfg_store

A helper to store configuration to some global-ish storage.