Skip to main content

ChildRunLaunchHook

Trait ChildRunLaunchHook 

Source
pub trait ChildRunLaunchHook: Send + Sync {
    // Required method
    fn before_child_launch(
        &self,
        job: &SpawnJob,
        child_events: Sender<AgentEvent>,
    );
}
Expand description

Optional application-layer preparation for a child run launched through the canonical scheduler.

The engine owns runner reservation and execution. Applications may use this synchronous, no-fail hook to attach observers to the already-created child event sender (for example, the server’s always-on notification relay) without introducing an engine dependency on application services.

Required Methods§

Source

fn before_child_launch(&self, job: &SpawnJob, child_events: Sender<AgentEvent>)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§