pub enum EnvError {
MissingKey(String),
ParseError {
key: String,
detail: String,
},
InvalidSyntax {
line: usize,
detail: String,
},
Io(String),
}Expand description
Error returned by .env parsing and typed environment configuration lookups.
Variants§
MissingKey(String)
Required environment key was absent or empty.
ParseError
Existing value failed typed parsing (key, detail).
InvalidSyntax
.env document contained malformed syntax at a 1-based line number.
Io(String)
Underlying filesystem read failure.
Trait Implementations§
impl Eq for EnvError
Source§impl Error for EnvError
Marks EnvError as a standard error.
impl Error for EnvError
Marks EnvError as a standard error.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
impl StructuralPartialEq for EnvError
Auto Trait Implementations§
impl Forget for EnvError
impl Freeze for EnvError
impl Move for EnvError
impl RefUnwindSafe for EnvError
impl Send for EnvErrorwhere
RawVecInner: Send,
impl Sync for EnvErrorwhere
RawVecInner: Sync,
impl Unpin for EnvError
impl UnsafeUnpin for EnvError
impl UnwindSafe for EnvErrorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more