Struct nu_system::ForegroundProcess
source · pub struct ForegroundProcess { /* private fields */ }
Expand description
A simple wrapper for std::process::Command
Spawn behavior
Unix
The spawned child process will get its own process group id, and it’s going to foreground (by making stdin belong’s to child’s process group).
On drop, the calling process’s group will become the foreground process group once again.
Windows
It does nothing special on windows system, spawn
is the same as std::process::Command::spawn
Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ForegroundProcess
impl Send for ForegroundProcess
impl Sync for ForegroundProcess
impl Unpin for ForegroundProcess
impl !UnwindSafe for ForegroundProcess
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more