pub enum EnvOrError {
NotPresent(String),
NotUnicode(String),
}Expand description
Failure resolving an EnvOr::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 EnvOrError
impl Clone for EnvOrError
Source§fn clone(&self) -> EnvOrError
fn clone(&self) -> EnvOrError
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 EnvOrError
impl Debug for EnvOrError
Source§impl Display for EnvOrError
Available on crate feature std only.
impl Display for EnvOrError
Available on crate feature
std only.Source§impl Error for EnvOrError
Available on crate feature std only.
impl Error for EnvOrError
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<EnvOrError> for Error
impl From<EnvOrError> for Error
Source§fn from(err: EnvOrError) -> Self
fn from(err: EnvOrError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnvOrError
impl PartialEq for EnvOrError
Source§fn eq(&self, other: &EnvOrError) -> bool
fn eq(&self, other: &EnvOrError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnvOrError
impl StructuralPartialEq for EnvOrError
Auto Trait Implementations§
impl Freeze for EnvOrError
impl RefUnwindSafe for EnvOrError
impl Send for EnvOrError
impl Sync for EnvOrError
impl Unpin for EnvOrError
impl UnsafeUnpin for EnvOrError
impl UnwindSafe for EnvOrError
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