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 inner(&self) -> &Child
fn inner(&self) -> &Child
Available on crate feature
downcasting only.Obtain a reference to the underlying
Child.Source§fn inner_mut(&mut self) -> &mut Child
fn inner_mut(&mut self) -> &mut Child
Available on crate feature
downcasting only.Obtain a mutable reference to the underlying
Child.Source§fn into_inner(self: Box<Self>) -> Child
fn into_inner(self: Box<Self>) -> Child
Available on crate feature
downcasting only.Consume the wrapper and return the underlying
Child. Read moreSource§fn start_kill(&mut self) -> Result<()>
fn start_kill(&mut self) -> Result<()>
Available on crate feature
downcasting only.Kill the
Child without waiting for it to exit. Read moreSource§fn wait(&mut self) -> Result<ExitStatus>
fn wait(&mut self) -> Result<ExitStatus>
Available on crate feature
downcasting only.Wait for the
Child to exit and return its exit status. Read moreSource§fn try_wait(&mut self) -> Result<Option<ExitStatus>>
fn try_wait(&mut self) -> Result<Option<ExitStatus>>
Available on crate feature
downcasting only.Check if the
Child has exited without blocking, and if so, return its exit status. Read moreSource§fn signal(&self, sig: i32) -> Result<()>
fn signal(&self, sig: i32) -> Result<()>
Available on crate feature
downcasting only.Send a signal to the
Child. Read moreSource§fn try_clone(&self) -> Option<Box<dyn StdChildWrapper>>
fn try_clone(&self) -> Option<Box<dyn StdChildWrapper>>
Available on crate feature
downcasting only.Obtain a clone if possible. Read more
Source§fn stdin(&mut self) -> &mut Option<ChildStdin>
fn stdin(&mut self) -> &mut Option<ChildStdin>
Available on crate feature
downcasting only.Obtain the
Child’s stdin. Read moreSource§fn stdout(&mut self) -> &mut Option<ChildStdout>
fn stdout(&mut self) -> &mut Option<ChildStdout>
Available on crate feature
downcasting only.Obtain the
Child’s stdout. Read moreSource§fn stderr(&mut self) -> &mut Option<ChildStderr>
fn stderr(&mut self) -> &mut Option<ChildStderr>
Available on crate feature
downcasting only.Obtain the
Child’s stderr. Read moreSource§fn id(&self) -> u32
fn id(&self) -> u32
Available on crate feature
downcasting only.Obtain the
Child’s process ID. 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