pub type BeforeSpawnHook = Arc<dyn Fn(&mut Command) -> Result<(), Error> + Send + Sync>;Expand description
Hook invoked on std::process::Command immediately before each spawn attempt.
Lets callers set Unix-specific options (pre_exec, umask, capabilities) or
otherwise tweak the spawn without waiting for procpilot to grow a builder
method for every knob. Returning an Err aborts the spawn and surfaces
as RunError::Spawn.
Aliased Typeยง
pub struct BeforeSpawnHook { /* private fields */ }