Skip to main content

HANDLER_REGISTRY

Static HANDLER_REGISTRY 

Source
pub static mut HANDLER_REGISTRY: *mut HashMap<(usize, String), Rc<RefCell<Option<NativeEventHandler>>>>
Expand description

Global pointer to the handler registry.

Lazily initialized on first access via Box::leak. Because WASM is single-threaded, concurrent access is impossible and raw pointer access is safe.