pub trait TriggerHandler: Send + Sync {
// Required method
fn handle(&self, ctx: &DispatchContext) -> Result<(), DispatchError>;
}Expand description
Renders and fires a trigger. Implemented per trigger family (F5).
The handler is called after the dispatch intent has been recorded in scryer.
A returned Err causes a Failed audit event; the fired event is not replayed.
Required Methods§
fn handle(&self, ctx: &DispatchContext) -> Result<(), DispatchError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".