pub struct ProcessGroup { /* private fields */ }Available on Unix and crate feature
process-group and crate feature std only.Expand description
Wrapper which sets the process group of a Command.
This wrapper is only available on Unix.
It sets the process group of a Command, either to itself as the leader of a new group, or to
an existing one by its PGID. See setpgid(2).
Process groups direct signals to all members of the group, and also serve to control job placement in foreground or background, among other actions.
This wrapper provides a child wrapper: ProcessGroupChild.
Implementations§
Trait Implementations§
Source§impl Clone for ProcessGroup
impl Clone for ProcessGroup
Source§fn clone(&self) -> ProcessGroup
fn clone(&self) -> ProcessGroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessGroup
impl Debug for ProcessGroup
Source§impl StdCommandWrapper for ProcessGroup
impl StdCommandWrapper for ProcessGroup
Source§fn pre_spawn(
&mut self,
command: &mut Command,
_core: &StdCommandWrap,
) -> Result<()>
fn pre_spawn( &mut self, command: &mut Command, _core: &StdCommandWrap, ) -> Result<()>
Called before the command is spawned, to mutate it as needed. Read more
Source§fn wrap_child(
&mut self,
inner: Box<dyn StdChildWrapper>,
_core: &StdCommandWrap,
) -> Result<Box<dyn StdChildWrapper>>
fn wrap_child( &mut self, inner: Box<dyn StdChildWrapper>, _core: &StdCommandWrap, ) -> Result<Box<dyn StdChildWrapper>>
Called to wrap a child into this command wrapper’s child wrapper. Read more
Source§fn extend(&mut self, _other: Box<dyn StdCommandWrapper>)
fn extend(&mut self, _other: Box<dyn StdCommandWrapper>)
Called on a first instance if a second of the same type is added. Read more
Source§fn post_spawn(
&mut self,
_child: &mut Child,
_core: &StdCommandWrap,
) -> Result<()>
fn post_spawn( &mut self, _child: &mut Child, _core: &StdCommandWrap, ) -> Result<()>
Called after spawn, but before the child is wrapped. Read more
impl Copy for ProcessGroup
Auto Trait Implementations§
impl Freeze for ProcessGroup
impl RefUnwindSafe for ProcessGroup
impl Send for ProcessGroup
impl Sync for ProcessGroup
impl Unpin for ProcessGroup
impl UnwindSafe for ProcessGroup
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