Skip to main content

Environment

Trait Environment 

Source
pub trait Environment {
    // Required method
    fn var(&self, key: &str) -> Result<String, VarError>;
}
Expand description

Source of process-style key/value configuration.

Required Methods§

Source

fn var(&self, key: &str) -> Result<String, VarError>

Read key from this environment source.

§Errors

Returns std::env::VarError when the key is absent or its value is not valid Unicode.

Implementors§