[−][src]Trait config::Source
Describes a generic source of configuration properties.
Required Methods
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
Collect all configuration properties available from this source and return a HashMap.
Provided Methods
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Implementations on Foreign Types
impl Source for Vec<Box<Source + Send + Sync>>
[src]
impl Source for Vec<Box<Source + Send + Sync>>
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
impl<T> Source for Vec<T> where
T: Source + Sync + Send,
T: Clone,
T: 'static,
[src]
impl<T> Source for Vec<T> where
T: Source + Sync + Send,
T: Clone,
T: 'static,
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
Implementors
impl Source for Config
[src]
impl Source for Config
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
impl Source for Environment
[src]
impl Source for Environment
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
impl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send,
[src]
impl<T: FileSource> Source for File<T> where
T: 'static,
T: Sync + Send,
fn clone_into_box(&self) -> Box<Source + Send + Sync>
[src]
fn clone_into_box(&self) -> Box<Source + Send + Sync>
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
[src]
fn collect(&self) -> Result<HashMap<String, Value>, ConfigError>
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>
[src]
fn collect_to(&self, cache: &mut Value) -> Result<(), ConfigError>