pub enum SecretError {
FileNotFound(PathBuf),
Io {
path: PathBuf,
source: Error,
},
InvalidSyntax {
path: PathBuf,
line: usize,
message: String,
},
}Expand description
Errors that can occur while loading secrets.
Variants§
FileNotFound(PathBuf)
The .env file path was explicitly provided but does not exist.
Io
An I/O error occurred while reading the file.
InvalidSyntax
A line in the file could not be parsed as KEY=VALUE.
Trait Implementations§
Source§impl Debug for SecretError
impl Debug for SecretError
Source§impl Display for SecretError
impl Display for SecretError
Source§impl Error for SecretError
impl Error for SecretError
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 SecretError
impl !UnwindSafe for SecretError
impl Freeze for SecretError
impl Send for SecretError
impl Sync for SecretError
impl Unpin for SecretError
impl UnsafeUnpin for SecretError
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