[][src]Trait preftool::ConfigurationBuilder

pub trait ConfigurationBuilder: Sized {
    type Config: Configuration;
    fn push_provider<P: ConfigurationProvider + 'static>(
        self,
        source: P
    ) -> Self;
fn build(self) -> Result<Self::Config>; fn add<S: ConfigurationSource>(self, source: S) -> Result<Self> { ... } }

A configuration builder.

Associated Types

type Config: Configuration

Resulting configuration type.

Loading content...

Required methods

fn push_provider<P: ConfigurationProvider + 'static>(self, source: P) -> Self

Add a configuration provider to the builder.

fn build(self) -> Result<Self::Config>

Build the configuration.

Loading content...

Provided methods

fn add<S: ConfigurationSource>(self, source: S) -> Result<Self>

Add a configuration source to the builder.

Loading content...

Implementors

impl ConfigurationBuilder for ConfigBuilder[src]

type Config = Config

fn add<S: ConfigurationSource>(self, source: S) -> Result<Self>[src]

Loading content...