pub enum EnvError {
Missing(String),
Parse {
key: String,
reason: String,
},
Syntax {
line: usize,
reason: String,
},
Io(String),
}Expand description
Error produced by .env parsing, typed key extraction, or [ServerConfig] construction.
Variants§
Missing(String)
Required environment variable was not set.
Parse
Environment variable value failed typed parsing.
Syntax
.env document contained invalid syntax.
Io(String)
Reading a .env file from disk failed.
Trait Implementations§
impl Eq for EnvError
Source§impl Error for EnvError
Marks EnvError as a standard error type.
impl Error for EnvError
Marks EnvError as a standard error type.
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§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.