pub trait ConfigurationRoot:
Configuration
+ AsRef<dyn Configuration>
+ Borrow<dyn Configuration>
+ Deref<Target = dyn Configuration>
+ Debug {
// Required methods
fn reload(&mut self) -> ReloadResult;
fn providers(&self) -> Box<dyn ConfigurationProviderIterator<'_> + '_>;
fn as_config(&self) -> Box<dyn Configuration>;
}
Expand description
Represents the root of a Configuration
hierarchy.
Required Methods§
Sourcefn reload(&mut self) -> ReloadResult
fn reload(&mut self) -> ReloadResult
Force the configuration values to be reloaded from the underlying
ConfigurationProvider
collection.
Sourcefn providers(&self) -> Box<dyn ConfigurationProviderIterator<'_> + '_>
fn providers(&self) -> Box<dyn ConfigurationProviderIterator<'_> + '_>
Gets the ConfigurationProvider
sequence for this configuration.
Sourcefn as_config(&self) -> Box<dyn Configuration>
fn as_config(&self) -> Box<dyn Configuration>
Converts the ConfigurationRoot
into a Configuration
.