pub enum ChildPath<'a> {
Inherited,
Set(&'a OsStr),
Unset,
}Expand description
The PATH the child process will see.
Variants§
Inherited
The child inherits the parent environment’s PATH unchanged.
Set(&'a OsStr)
The child environment sets PATH to this value.
Unset
The child environment has no PATH (for example env_clear() without
re-adding it); execvp then uses a libc-specific default.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for ChildPath<'a>
impl<'a> Freeze for ChildPath<'a>
impl<'a> Move for ChildPath<'a>
impl<'a> RefUnwindSafe for ChildPath<'a>
impl<'a> Send for ChildPath<'a>
impl<'a> Sync for ChildPath<'a>
impl<'a> Unpin for ChildPath<'a>
impl<'a> UnsafeUnpin for ChildPath<'a>where
&'a OsStr: UnsafeUnpin,
impl<'a> UnwindSafe for ChildPath<'a>where
&'a OsStr: UnwindSafe,
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