Unregister a hook
(&self, hook_id: &str)
| 256 | |
| 257 | /// Unregister a hook |
| 258 | pub fn unregister(&self, hook_id: &str) -> Option<Hook> { |
| 259 | let mut hooks = write_or_recover(&self.hooks); |
| 260 | hooks.remove(hook_id) |
| 261 | } |
| 262 | |
| 263 | /// Register a handler |
| 264 | pub fn register_handler(&self, hook_id: &str, handler: Arc<dyn HookHandler>) { |