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§fn clone(&self) -> ConfigValueError
fn clone(&self) -> ConfigValueError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 From<ConfigValueError> for Error
impl From<ConfigValueError> for Error
Source§fn from(err: ConfigValueError) -> Self
fn from(err: ConfigValueError) -> Self
Converts to this type from the input type.
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
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<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<Joined, From> JoinKey<From, JoinReverse> for Joined
impl<List> ListIncludes<Nil, ()> for List
impl<Mk> MarkerAggValidFor<()> for Mk
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more