pub enum EnvError {
NotUnicode,
ParseError {
reason: String,
},
RequiredNotPresent,
}
Expand description
Errors with env variables.
Variants§
NotUnicode
The environment variable value is not unicode.
ParseError
Problem parsing the env variable as the desired type.
RequiredNotPresent
The required environment variable wasn’t present.
Trait Implementations§
source§impl Error for EnvError
impl Error for EnvError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()