Register a handler for a specific hook.
(
&self,
hook_id: &str,
handler: Arc<dyn crate::hooks::HookHandler>,
)
| 1129 | |
| 1130 | /// Register a handler for a specific hook. |
| 1131 | pub fn register_hook_handler( |
| 1132 | &self, |
| 1133 | hook_id: &str, |
| 1134 | handler: Arc<dyn crate::hooks::HookHandler>, |
| 1135 | ) { |
| 1136 | HookControl::from_session(self).register_hook_handler(hook_id, handler); |
| 1137 | } |
| 1138 | |
| 1139 | /// Unregister a hook handler by hook ID. |
| 1140 | pub fn unregister_hook_handler(&self, hook_id: &str) { |
no outgoing calls
no test coverage detected