Convenience: build a HookContext and trigger it on the global system.
(event: HookEvent)
| 328 | |
| 329 | /// Convenience: build a HookContext and trigger it on the global system. |
| 330 | pub async fn trigger_event(event: HookEvent) { |
| 331 | trigger(HookContext::new(event)).await; |
| 332 | } |
| 333 | |
| 334 | /// Convenience: build a HookContext with session and trigger it. |
| 335 | pub async fn trigger_session_event(event: HookEvent, session_id: &str) { |