FromEnv

Trait FromEnv 

Source
pub trait FromEnv: Sized {
    // Required methods
    fn load(env_path: &Path) -> Result<Self, CfgError>;
    fn load_iter<I, P>(paths: I) -> Result<Self, CfgError>
       where I: IntoIterator<Item = P>,
             P: AsRef<Path>;
}

Required Methods§

Source

fn load(env_path: &Path) -> Result<Self, CfgError>

Source

fn load_iter<I, P>(paths: I) -> Result<Self, CfgError>
where I: IntoIterator<Item = P>, P: AsRef<Path>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§