Struct nu_system::ForegroundChild
source · pub struct ForegroundChild { /* private fields */ }
Expand description
A simple wrapper for std::process::Child
It can only be created by ForegroundChild::spawn
.
§Spawn behavior
§Unix
For interactive shells, the spawned child process will get its own process group id, and it will be put in the foreground (by making stdin belong to the child’s process group). On drop, the calling process’s group will become the foreground process group once again.
For non-interactive mode, processes are spawned normally without any foreground process handling.
§Other systems
It does nothing special on non-unix systems, so spawn
is the same as std::process::Command::spawn
.
Implementations§
Trait Implementations§
source§impl AsMut<Child> for ForegroundChild
impl AsMut<Child> for ForegroundChild
Auto Trait Implementations§
impl RefUnwindSafe for ForegroundChild
impl Send for ForegroundChild
impl Sync for ForegroundChild
impl Unpin for ForegroundChild
impl UnwindSafe for ForegroundChild
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