pub struct OsEnv;
Expand description
Implements Env for the OS context, both Unix style and Windows.
This is trait permits in-process testing by providing a control point to allow in-process divergence on what is normally process wide state.
Implementations should be provided by whatever testing framework the caller is using. Code that is not performing in-process threaded testing requiring isolated rustup/cargo directories does not need this trait or the _from functions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OsEnv
impl RefUnwindSafe for OsEnv
impl Send for OsEnv
impl Sync for OsEnv
impl Unpin for OsEnv
impl UnwindSafe for OsEnv
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