Skip to main content

SharedHookRegistry

Type Alias SharedHookRegistry 

Source
pub type SharedHookRegistry = Arc<RwLock<HookRegistry>>;
Expand description

Thread-safe shared reference to a HookRegistry.

Follows the same pattern as SharedChannelHandles in the runtime:

  • dispatch() takes &self → read lock
  • register() / unregister() take &mut self → write lock

std::sync::RwLock (not tokio) because the lock is never held across .await points.

Aliased Type§

pub struct SharedHookRegistry { /* private fields */ }