pub trait PhaseEndTrigger:
Send
+ Sync
+ 'static {
// Required method
fn fire(&self, event: &PhaseEndEvent);
// Provided method
fn name(&self) -> &str { ... }
}Expand description
Trigger callback. Implementors fire whenever a phase completes (success or failure). The implementation should be cheap to set up — long work runs on the worker thread, not the executor.
Required Methods§
Sourcefn fire(&self, event: &PhaseEndEvent)
fn fire(&self, event: &PhaseEndEvent)
Fire the trigger. event carries the phase identity
and outcome; the implementation reads whatever live
state it needs (the session db, the metrics dir) on
its own.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".