pub enum LoadVarError<T: FromStr> {
VarError(VarError),
ParseError(T::Err),
IOError(Error),
}Expand description
Errors that can occur when loading a global config variable from the environment.
Variants§
VarError(VarError)
Errors returned from std::env::var.
ParseError(T::Err)
Environment variable had a value but it could not be parsed.
IOError(Error)
Errors returned from std::fs::File::open.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LoadVarError<T>
impl<T> !RefUnwindSafe for LoadVarError<T>
impl<T> Send for LoadVarError<T>
impl<T> Sync for LoadVarError<T>
impl<T> Unpin for LoadVarError<T>
impl<T> !UnwindSafe for LoadVarError<T>
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