pub struct Env { /* private fields */ }
Expand description
Implements the environment source.
Implementations
sourceimpl Env
impl Env
sourcepub fn new(env_mapping: &[(ConfPath, &OsStr)]) -> Box<Self>
pub fn new(env_mapping: &[(ConfPath, &OsStr)]) -> Box<Self>
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
Auto Trait Implementations
impl !RefUnwindSafe for Env
impl !Send for Env
impl !Sync for Env
impl Unpin for Env
impl !UnwindSafe for Env
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more