Skip to main content

Module registry

Module registry 

Source
Expand description

Global endpoint registry shared by all FFI adapters.

Centralises the Slab<IrohEndpoint> that was previously triplicated across Node, Deno, and Tauri adapters. Handles are u64, consistent with stream handles from slotmap.

Functionsยง

close_all_endpoints
Drain the entire registry and force-close every endpoint.
get_endpoint
Look up an endpoint by handle (cheap Arc clone).
insert_endpoint
Insert an endpoint into the global registry and return its handle.
remove_endpoint
Remove an endpoint from the registry, returning it if it existed.