Struct process_wrap::std::ProcessGroupChild
source · pub struct ProcessGroupChild { /* private fields */ }Available on Unix and crate feature
process-group and crate feature std only.Expand description
Wrapper for Child which ensures that all processes in the group are reaped.
Implementations§
source§impl ProcessGroupChild
impl ProcessGroupChild
sourcepub fn pgid(&self) -> u32
pub fn pgid(&self) -> u32
Get the process group ID of this child process.
See: man 'setpgid(2)'
Trait Implementations§
source§impl Debug for ProcessGroupChild
impl Debug for ProcessGroupChild
source§impl StdChildWrapper for ProcessGroupChild
impl StdChildWrapper for ProcessGroupChild
source§fn into_inner(self: Box<Self>) -> Child
fn into_inner(self: Box<Self>) -> Child
Consume the wrapper and return the underlying
Child. Read moresource§fn start_kill(&mut self) -> Result<()>
fn start_kill(&mut self) -> Result<()>
Kill the
Child without waiting for it to exit. Read moresource§fn wait(&mut self) -> Result<ExitStatus>
fn wait(&mut self) -> Result<ExitStatus>
Wait for the
Child to exit and return its exit status. Read moreAuto Trait Implementations§
impl Freeze for ProcessGroupChild
impl !RefUnwindSafe for ProcessGroupChild
impl Send for ProcessGroupChild
impl Sync for ProcessGroupChild
impl Unpin for ProcessGroupChild
impl !UnwindSafe for ProcessGroupChild
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