[−][src]Enum mapped_command::EnvChange
Used to determine how a env variable should be updated.
Variants
Remove the env value if it normally would have been set
(e.g. because of inherited environment)
Set(OsString)
Make sure the env variable will have given value in the sub-process.
Make sure the env variable is inherited from the process spawning the sub-process.
If environment inheritance is disabled (e.g. using with_inherit_env(false)
) this
will cause given values to still be inherited anyway.
If environment inheritance is enabled this won't have any effect.
Trait Implementations
impl Clone for EnvChange
[src]
impl Debug for EnvChange
[src]
impl From<&'_ EnvChange> for EnvChange
[src]
impl From<&'_ OsStr> for EnvChange
[src]
impl From<&'_ OsString> for EnvChange
[src]
impl From<&'_ str> for EnvChange
[src]
impl From<OsString> for EnvChange
[src]
impl From<String> for EnvChange
[src]
impl PartialEq<EnvChange> for EnvChange
[src]
impl StructuralPartialEq for EnvChange
[src]
Auto Trait Implementations
impl RefUnwindSafe for EnvChange
[src]
impl Send for EnvChange
[src]
impl Sync for EnvChange
[src]
impl Unpin for EnvChange
[src]
impl UnwindSafe for EnvChange
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,