pub enum ConfigValueError {
NotPresent(String),
NotUnicode(String),
}Expand description
Failure resolving a ConfigValue::Env reference.
Variants§
NotPresent(String)
The named environment variable is not set in the process.
NotUnicode(String)
The named environment variable is set but contains non-UTF-8 bytes.
Trait Implementations§
Source§impl Clone for ConfigValueError
impl Clone for ConfigValueError
Source§impl Debug for ConfigValueError
impl Debug for ConfigValueError
Source§impl Display for ConfigValueError
Available on crate feature std only.
impl Display for ConfigValueError
Available on crate feature
std only.impl Eq for ConfigValueError
Source§impl Error for ConfigValueError
Available on crate feature std only.
impl Error for ConfigValueError
Available on crate feature
std only.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()
Source§impl PartialEq for ConfigValueError
impl PartialEq for ConfigValueError
impl StructuralPartialEq for ConfigValueError
Auto Trait Implementations§
impl Freeze for ConfigValueError
impl RefUnwindSafe for ConfigValueError
impl Send for ConfigValueError
impl Sync for ConfigValueError
impl Unpin for ConfigValueError
impl UnsafeUnpin for ConfigValueError
impl UnwindSafe for ConfigValueError
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