Skip to main content

EnvVarName

Trait EnvVarName 

Source
pub trait EnvVarName {
    const NAME: &'static str;
}
Expand description

Names the environment variable that an EnvVarOpt reads.

Declare implementors with make_env_var! rather than by hand.

Required Associated Constants§

Source

const NAME: &'static str

The environment variable name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl EnvVarName for HomeVarName

Source§

const NAME: &'static str = "HOME"

Source§

impl EnvVarName for PathVarName

Source§

const NAME: &'static str = "PATH"

Source§

impl EnvVarName for RustBacktraceVarName

Source§

const NAME: &'static str = "RUST_BACKTRACE"

Source§

impl EnvVarName for RustLogVarName

Source§

const NAME: &'static str = "RUST_LOG"

Source§

impl EnvVarName for UserVarName

Source§

const NAME: &'static str = "USER"