[][src]Trait manaconf::Source

pub trait Source {
    type Error;
    fn get_value(&self, key: &Key) -> Result<Option<Value>, Self::Error>;
}

Trait implemented by config value sources

Associated Types

type Error

The error type used by this Source

Loading content...

Required methods

fn get_value(&self, key: &Key) -> Result<Option<Value>, Self::Error>

Gets a value from the source with the given key

Loading content...

Implementors

impl Source for CommandLineSource[src]

type Error = Infallible

impl Source for EnvVarSource[src]

type Error = VarError

impl<S: Source> Source for WithPrefixSource<S>[src]

type Error = S::Error

Loading content...