W3cubDocs

/Rust

Enum std::env::VarError

pub enum VarError {
    NotPresent,
    NotUnicode(OsString),
}

The error type for operations interacting with environment variables. Possibly returned from the env::var function.

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[src]

impl Debug for VarError[src]

impl Display for VarError[src]

impl Eq for VarError[src]

impl Error for VarError[src]

impl PartialEq<VarError> for VarError[src]

impl StructuralEq for VarError[src]

impl StructuralPartialEq for VarError[src]

Auto Trait Implementations

impl RefUnwindSafe for VarError

impl Send for VarError

impl Sync for VarError

impl Unpin for VarError

impl UnwindSafe for VarError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/env/enum.VarError.html