Convenience: build a HookContext with session and trigger it.
(event: HookEvent, session_id: &str)
| 333 | |
| 334 | /// Convenience: build a HookContext with session and trigger it. |
| 335 | pub async fn trigger_session_event(event: HookEvent, session_id: &str) { |
| 336 | trigger(HookContext::new(event).with_session(session_id)).await; |
| 337 | } |
| 338 | |
| 339 | #[cfg(test)] |
| 340 | mod tests { |
nothing calls this directly
no test coverage detected