Trait miau::provider::Provider[][src]

pub trait Provider {
    fn collect(&self) -> Result<Configuration, ConfigurationError>;
fn describe(&self) -> ConfigurationInfo; }

Represents configuration source and its associated format.

Can be as an aggregator of the two or by itself to represent source in which distinction between source and format is blurry.

Required methods

fn collect(&self) -> Result<Configuration, ConfigurationError>[src]

Collects given source into Configuration.

fn describe(&self) -> ConfigurationInfo[src]

Describes this provider.

Loading content...

Implementations on Foreign Types

impl Provider for HashMap<String, String>[src]

Loading content...

Implementors

Loading content...