Enum std::env::VarError1.0.0 [] [src]

pub enum VarError {
    NotPresent,
    NotUnicode(OsString),
}
1.0.0

Possible errors from the env::var method.

Variants

NotPresent

The specified environment variable was not present in the current process's environment.

NotUnicode

The specified environment variable was found, but it did not contain valid unicode data. The found data is returned as a payload of this variant.

Trait Implementations

impl Display for VarError
[src]

fn fmt(&self, f: &mut Formatter) -> Result

impl Error for VarError
[src]

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

Derived Implementations

impl Clone for VarError
[src]

fn clone(&self) -> VarError

fn clone_from(&mut self, source: &Self)

impl Eq for VarError
[src]

impl PartialEq for VarError
[src]

fn eq(&self, __arg_0: &VarError) -> bool

fn ne(&self, __arg_0: &VarError) -> bool

impl Debug for VarError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result