pub enum ExecPresetSetting {
Minimal,
Full,
}Expand description
Controls which host environment variables the child process inherits.
Variants§
Minimal
Inherit only PATH and a safe core set (HOME, USER, TMPDIR, LANG, TERM, SSH_AUTH_SOCK, etc.) plus vault secrets. No tokens or credentials from the parent environment leak through.
Full
Inherit the full parent environment minus the known-sensitive strip list. This is the current default behavior when no preset or inheritance flag is given.
Trait Implementations§
Source§impl Clone for ExecPresetSetting
impl Clone for ExecPresetSetting
Source§fn clone(&self) -> ExecPresetSetting
fn clone(&self) -> ExecPresetSetting
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ValueEnum for ExecPresetSetting
impl ValueEnum for ExecPresetSetting
impl Copy for ExecPresetSetting
Auto Trait Implementations§
impl Freeze for ExecPresetSetting
impl RefUnwindSafe for ExecPresetSetting
impl Send for ExecPresetSetting
impl Sync for ExecPresetSetting
impl Unpin for ExecPresetSetting
impl UnsafeUnpin for ExecPresetSetting
impl UnwindSafe for ExecPresetSetting
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