Enum VarError

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(crate::ffi::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.

Implementations

impl Clone for VarError

fn clone(self: &Self) -> VarError

impl Debug for VarError

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Display for VarError

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Eq for VarError

impl Error for VarError

impl Freeze for VarError

impl PartialEq for VarError

fn eq(self: &Self, other: &VarError) -> bool

impl RefUnwindSafe for VarError

impl Send for VarError

impl StructuralPartialEq for VarError

impl Sync for VarError

impl Unpin for VarError

impl UnwindSafe for VarError

impl<T> Any for VarError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for VarError

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for VarError

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for VarError

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for VarError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for VarError

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for VarError

fn to_string(self: &Self) -> String

impl<T, U> Into for VarError

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for VarError

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for VarError

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>