ProvideEnv

Trait ProvideEnv 

Source
pub trait ProvideEnv:
    Debug
    + Send
    + Sync
    + UnwindSafe
    + RefUnwindSafe {
    // Required method
    fn get(&self, k: &str) -> Result<String, VarError>;
}
Expand description

Trait for custom environment variable providers.

Required Methods§

Source

fn get(&self, k: &str) -> Result<String, VarError>

Get the value of environment variable k.

Implementors§