[][src]Struct justconfig::sources::env::Env

pub struct Env { /* fields omitted */ }

Implements the environment source.

Implementations

impl Env[src]

pub fn new(env_mapping: &[(ConfPath, &OsStr)]) -> Box<Self>[src]

Creates a new environment source.

For creating the environment source a mapping between the configuration key and the name of the environment variable has to be created. This is done by passing a slice of tuples. The first element of the tuple defines the configuration path of the environment value and the second element defines the name of the environment variable.

See the env module for more information.

Trait Implementations

impl Source for Env[src]

Auto Trait Implementations

impl !RefUnwindSafe for Env[src]

impl !Send for Env[src]

impl !Sync for Env[src]

impl Unpin for Env[src]

impl !UnwindSafe for Env[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.