Struct watchexec_supervisor::command::SpawnOptions
source · pub struct SpawnOptions {
pub grouped: bool,
pub reset_sigmask: bool,
}Expand description
Options set when constructing or spawning a command.
It’s recommended to use the Default implementation for this struct, and only set the options
you need to change, to proof against new options being added in future.
Examples
Command {
program: Program::Exec {
prog: "make".into(),
args: vec!["check".into()],
},
options: SpawnOptions {
grouped: true,
..Default::default()
},
};Fields§
§grouped: boolRun the program in a new process group.
This will use either of Unix process groups or Windows Job Objects via the
command-group crate.
reset_sigmask: boolReset the signal mask of the process before we spawn it.
By default, the signal mask of the process is inherited from the parent process. This means that if the parent process has blocked any signals, the child process will also block those signals. This can cause problems if the child process is expecting to receive those signals.
This is only supported on Unix systems.
Trait Implementations§
source§impl Clone for SpawnOptions
impl Clone for SpawnOptions
source§fn clone(&self) -> SpawnOptions
fn clone(&self) -> SpawnOptions
Returns a copy 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 SpawnOptions
impl Debug for SpawnOptions
source§impl Default for SpawnOptions
impl Default for SpawnOptions
source§fn default() -> SpawnOptions
fn default() -> SpawnOptions
Returns the “default value” for a type. Read more
source§impl Hash for SpawnOptions
impl Hash for SpawnOptions
source§impl PartialEq for SpawnOptions
impl PartialEq for SpawnOptions
source§fn eq(&self, other: &SpawnOptions) -> bool
fn eq(&self, other: &SpawnOptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SpawnOptions
impl Eq for SpawnOptions
impl StructuralEq for SpawnOptions
impl StructuralPartialEq for SpawnOptions
Auto Trait Implementations§
impl RefUnwindSafe for SpawnOptions
impl Send for SpawnOptions
impl Sync for SpawnOptions
impl Unpin for SpawnOptions
impl UnwindSafe for SpawnOptions
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