#[non_exhaustive]pub enum Scope {
Group,
Child,
}Expand description
Which processes a run holds and signals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Group
The child and every process that it starts. On Unix the child leads
a new process group, and each signal goes to the group. On Windows
the child runs in a new job object, and a stop ends the job. The job
object replaces the command’s creation flags with its own, which
start the child suspended, so flags that the caller set with
CommandExt::creation_flags are lost.
Child
The child alone. The child stays in the caller’s process group, so a signal that the caller’s terminal sends reaches it too, and each signal from the crate goes to the child only. A process that the child starts is never stopped by the crate.
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl Move for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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