Struct config::MemoryConfigurationProvider
source · pub struct MemoryConfigurationProvider { /* private fields */ }
Available on crate feature
mem
only.Expand description
Represents a ConfigurationProvider
that
provides in-memory configuration values.
Implementations§
Trait Implementations§
source§impl ConfigurationProvider for MemoryConfigurationProvider
impl ConfigurationProvider for MemoryConfigurationProvider
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 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 reload_token(&self) -> Box<dyn ChangeToken>
fn reload_token(&self) -> Box<dyn ChangeToken>
Returns a
ChangeToken
if this provider supports change tracking.source§fn load(&mut self) -> LoadResult
fn load(&mut self) -> LoadResult
Loads the configuration values from the implemented source.
Auto Trait Implementations§
impl RefUnwindSafe for MemoryConfigurationProvider
impl !Send for MemoryConfigurationProvider
impl !Sync for MemoryConfigurationProvider
impl Unpin for MemoryConfigurationProvider
impl UnwindSafe for MemoryConfigurationProvider
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