pub struct ChainedConfigurationProvider { /* private fields */ }
Available on crate feature
chained
only.Expand description
Represents a chained ConfigurationProvider
.
Implementations§
Source§impl ChainedConfigurationProvider
impl ChainedConfigurationProvider
Sourcepub fn new(configuration: Rc<dyn Configuration>) -> Self
pub fn new(configuration: Rc<dyn Configuration>) -> Self
Initializes a new chained configuration provider.
§Arguments
configuration
- TheConfiguration
to chain
Trait Implementations§
Source§impl ConfigurationProvider for ChainedConfigurationProvider
impl ConfigurationProvider for ChainedConfigurationProvider
Source§fn get(&self, key: &str) -> Option<Value>
fn get(&self, key: &str) -> Option<Value>
Attempts to get a configuration value with the specified key. Read more
Source§fn reload_token(&self) -> Box<dyn ChangeToken>
fn reload_token(&self) -> Box<dyn ChangeToken>
Returns a
ChangeToken
if this provider supports change tracking.Source§fn child_keys(&self, earlier_keys: &mut Vec<String>, parent_path: Option<&str>)
fn child_keys(&self, earlier_keys: &mut Vec<String>, parent_path: Option<&str>)
Gets the immediate descendent configuration keys for a given parent path based
on this
ConfigurationProvider
and the set of keys returned by all of the
preceding ConfigurationProvider
. Read moreSource§fn load(&mut self) -> LoadResult
fn load(&mut self) -> LoadResult
Loads the configuration values from the implemented source.
Auto Trait Implementations§
impl Freeze for ChainedConfigurationProvider
impl !RefUnwindSafe for ChainedConfigurationProvider
impl !Send for ChainedConfigurationProvider
impl !Sync for ChainedConfigurationProvider
impl Unpin for ChainedConfigurationProvider
impl !UnwindSafe for ChainedConfigurationProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more