pub enum EnvChange {
Remove,
Set(OsString),
Inherit,
}
Expand description
Used to determine how a env variable should be updated.
Variants§
Remove
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.
Inherit
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 StructuralPartialEq for EnvChange
Auto Trait Implementations§
impl Freeze for EnvChange
impl RefUnwindSafe for EnvChange
impl Send for EnvChange
impl Sync for EnvChange
impl Unpin for EnvChange
impl UnwindSafe for EnvChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more