Enum VarError
pub enum VarError
The error type for operations interacting with environment variables.
Possibly returned from env::var().
Variants
-
NotPresent The specified environment variable was not present in the current process's environment.
-
NotUnicode(OsString) The specified environment variable was found, but it did not contain valid unicode data. The found data is returned as a payload of this variant.
Trait Implementations
impl Clone for VarError
fn clone(&self) -> VarError
impl Debug for VarError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for VarError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for VarError
fn assert_fields_are_eq(&self)
impl Error for VarError
impl PartialEq for VarError
fn eq(&self, other: &VarError) -> bool
impl StructuralPartialEq for VarError
Auto Trait Implementations
impl Freeze for VarError
impl RefUnwindSafe for VarError
impl Send for VarError
impl Sync for VarError
impl Unpin for VarError
impl UnsafeUnpin for VarError
impl UnwindSafe for VarError
Blanket Implementations
impl<T> Any for VarError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for VarError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for VarError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for VarError
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for VarError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for VarError
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for VarError
impl<T> ToOwned for VarError
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for VarError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for VarError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for VarError
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for VarError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>