pub trait StageHooks {
type Error;
// Required methods
fn cancellation_requested(&self, run_id: &str) -> bool;
fn record_agent_process(
&self,
checkpoint: &AgentProcessCheckpoint,
) -> Result<(), Self::Error>;
fn record_exec_process(
&self,
checkpoint: &ExecProcessCheckpoint,
) -> Result<(), Self::Error>;
}Expand description
The only daemon-owned services available while a stage is executing.
Required Associated Types§
Required Methods§
fn cancellation_requested(&self, run_id: &str) -> bool
fn record_agent_process( &self, checkpoint: &AgentProcessCheckpoint, ) -> Result<(), Self::Error>
fn record_exec_process( &self, checkpoint: &ExecProcessCheckpoint, ) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".