Skip to content

env

Structs

  • ExecutionEnv - Environment variables handed to the wrapped process for one launch.

Struct

Environment variables handed to the wrapped process for one launch.

Start from [ExecutionEnv::new], then chain the with_* methods in precedence order, lowest priority first. Each one overwrites keys set before it.

Methods:

  • fn get(self: &Self, key: &str) -> Option<&String> - Return the value set for key, if any.
  • fn is_empty(self: &Self) -> bool - Return whether no variable is set.

Traits: Eq

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Default
    • fn default() -> ExecutionEnv
  • PartialEq
    • fn eq(self: &Self, other: &ExecutionEnv) -> bool
  • Clone
    • fn clone(self: &Self) -> ExecutionEnv
  • From
    • fn from(vars: BTreeMap<String, String>) -> Self