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 CommandWrapper for ProcessGroup
impl CommandWrapper for ProcessGroup
Source§fn pre_spawn(
&mut self,
command: &mut Command,
_core: &CommandWrap,
) -> Result<()>
fn pre_spawn( &mut self, command: &mut Command, _core: &CommandWrap, ) -> Result<()>
Called before the command is spawned, to mutate it as needed. Read more
Source§fn wrap_child(
&mut self,
inner: Box<dyn ChildWrapper>,
_core: &CommandWrap,
) -> Result<Box<dyn ChildWrapper>>
fn wrap_child( &mut self, inner: Box<dyn ChildWrapper>, _core: &CommandWrap, ) -> Result<Box<dyn ChildWrapper>>
Called to wrap a child into this command wrapper’s child wrapper. Read more
Source§fn extend(&mut self, _other: Box<dyn CommandWrapper>)
fn extend(&mut self, _other: Box<dyn CommandWrapper>)
Called on a first instance if a second of the same type is added. Read more
Source§fn post_spawn(
&mut self,
_command: &mut Command,
_child: &mut Child,
_core: &CommandWrap,
) -> Result<()>
fn post_spawn( &mut self, _command: &mut Command, _child: &mut Child, _core: &CommandWrap, ) -> Result<()>
Called after spawn, but before the child is wrapped. Read more
Source§impl Debug for ProcessGroup
impl Debug for ProcessGroup
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