pub enum EnvironmentFileError {
Io(Error),
Syntax {
index: usize,
},
Variable,
Other,
}Expand description
Sanitized cause for an explicitly selected dotenv file.
Variants§
Io(Error)
The file could not be read.
Syntax
A dotenv line has invalid syntax at the reported character index.
Variable
A referenced process variable was unavailable or not valid Unicode.
Other
A future dotenv error kind was returned by the non-exhaustive API.
Trait Implementations§
Source§impl Debug for EnvironmentFileError
impl Debug for EnvironmentFileError
Source§impl Display for EnvironmentFileError
impl Display for EnvironmentFileError
Source§impl Error for EnvironmentFileError
impl Error for EnvironmentFileError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EnvironmentFileError
impl !UnwindSafe for EnvironmentFileError
impl Freeze for EnvironmentFileError
impl Send for EnvironmentFileError
impl Sync for EnvironmentFileError
impl Unpin for EnvironmentFileError
impl UnsafeUnpin for EnvironmentFileError
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