pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Self
    where
        K: AsRef<OsStr>,
        V: AsRef<OsStr>,
    {
        self.envs
            .insert(key.as_ref().to_owned(), val.as_ref().to_owned());
        self
    }
/// Set an environment variable in the spawned process. Equivalent to `Command::env`
Set an environment variable in the spawned process. Equivalent to `Command::env`
Set an environment variable in the spawned process . Equivalent to ` Command :: env `
pub fn env<K, V>(&mut self, key: K, val: V) -> &mut Self
    where
        K: AsRef<OsStr>,
        V: AsRef<OsStr>,
    {
        self.envs
            .insert(key.as_ref().to_owned(), val.as_ref().to_owned());
        self
    }
pub fn env < K , V > ( & mut self , key : K , val : V ) -> & mut Self where K : AsRef < OsStr > , V : AsRef < OsStr > , { self . envs . insert ( key . as_ref ( ) . to_owned ( ) , val . as_ref ( ) . to_owned ( ) ) ; self }
Set an environment variable in the spawned process.
Set an environment variable in the spawned process .
&mut self
key
K
val
V
&mut self
key
K
val
V