Skip to main content

read_env_var

Function read_env_var 

Source
pub fn read_env_var(name: &EnvVarName) -> Result<EnvVarValue, EnvVarReadError>
Expand description

Reads a present Unicode environment variable.

ยงErrors

Returns EnvVarReadError::NotPresent when the variable is missing and EnvVarReadError::NotUnicode when the value is not valid Unicode.