pub type TemplateHook = Arc<dyn Fn(&TemplateEvent) + Send + Sync + 'static>;Expand description
Type alias for template event hooks.
Hooks are functions that receive a reference to a TemplateEvent and
can perform any side effects (logging, metrics, etc.).
Hooks must be:
Send + Syncfor thread safety'staticlifetime to be stored in the parser
Aliased Typeยง
pub struct TemplateHook { /* private fields */ }