pub struct StaticEnv {
pub home_dir: Option<PathBuf>,
pub envs: HashMap<String, String>,
}Expand description
StaticEnv provides a static env environment.
This is useful for testing or for providing a fixed environment.
Fields§
§home_dir: Option<PathBuf>The home directory to use.
envs: HashMap<String, String>The environment variables to use.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticEnv
impl RefUnwindSafe for StaticEnv
impl Send for StaticEnv
impl Sync for StaticEnv
impl Unpin for StaticEnv
impl UnwindSafe for StaticEnv
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