Trait ConfigurationProvider

Source
pub trait ConfigurationProvider: Send + Sync {
    // Required methods
    fn try_get(&self, key: &ConfigKey) -> Option<&str>;
    fn get_child_keys(&self, key: &ConfigKey, keys: &mut HashSet<ConfigKey>);
}
Expand description

A configuration provider.

Required Methods§

Source

fn try_get(&self, key: &ConfigKey) -> Option<&str>

Try to get a value for a given key.

Source

fn get_child_keys(&self, key: &ConfigKey, keys: &mut HashSet<ConfigKey>)

Get all child keys of a given key.

Trait Implementations§

Source§

impl ConfigurationProvider for Box<dyn ConfigurationProvider>

Source§

fn try_get(&self, key: &ConfigKey) -> Option<&str>

Try to get a value for a given key.
Source§

fn get_child_keys(&self, key: &ConfigKey, keys: &mut HashSet<ConfigKey>)

Get all child keys of a given key.

Implementations on Foreign Types§

Source§

impl ConfigurationProvider for Box<dyn ConfigurationProvider>

Source§

fn try_get(&self, key: &ConfigKey) -> Option<&str>

Source§

fn get_child_keys(&self, key: &ConfigKey, keys: &mut HashSet<ConfigKey>)

Source§

impl<P: ConfigurationProvider> ConfigurationProvider for Box<P>

Source§

fn try_get(&self, key: &ConfigKey) -> Option<&str>

Source§

fn get_child_keys(&self, key: &ConfigKey, keys: &mut HashSet<ConfigKey>)

Implementors§