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 ChildWrapper for ProcessGroupChild
impl ChildWrapper for ProcessGroupChild
Source§fn inner(&self) -> &dyn ChildWrapper
fn inner(&self) -> &dyn ChildWrapper
Obtain a reference to the wrapped child.
Source§fn inner_mut(&mut self) -> &mut dyn ChildWrapper
fn inner_mut(&mut self) -> &mut dyn ChildWrapper
Obtain a mutable reference to the wrapped child.
Source§fn into_inner(self: Box<Self>) -> Box<dyn ChildWrapper>
fn into_inner(self: Box<Self>) -> Box<dyn ChildWrapper>
Consume the current wrapper and return the wrapped child. Read more
Source§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