Enum std::env::VarError 1.0.0[−][src]
pub enum VarError {
NotPresent,
NotUnicode(OsString),
}Expand description
The error type for operations interacting with environment variables.
Possibly returned from env::var().
Variants
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 Error for VarError[src]
impl Error for VarError[src]fn description(&self) -> &str[src]
fn description(&self) -> &str[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more