pub struct ConfigManager { /* private fields */ }ConfigManager::get returns Arc<RwLock<EnterpriseConfig>> today; in v0.9.5 it returns Arc<RwLock<Config>> once Config absorbs the cached/thread-safe surface. ConfigManager itself is retained.
Expand description
Configuration manager for multiple named instances.
ConfigManager itself survives the v0.9.4 โ v0.9.5 transition โ it
is a useful primitive for runtimes that maintain several independent
configurations within one process. Its internal storage type
changes in v0.9.5: today it holds EnterpriseConfig instances;
v0.9.5 swaps that to crate::Config once the latter has
equivalent caching semantics. The public method surface
(load / get / list / remove) does not change.
The struct carries a #[deprecated] notice through v0.9.4 to
signal that the return type of get changes shape in v0.9.5
(it will hand back a Config handle, not an EnterpriseConfig).
Callers that only use load / list / remove can ignore the
warning; callers that consume the Arc<RwLock<EnterpriseConfig>>
returned by get should plan to migrate when v0.9.5 lands.