Skip to main content

Module handle

Module handle 

Source
Expand description

Handles for PubHubs objects like hubs and attribute types.

Structs§

Handle
A handle used to refer to hubs, attributes, etc. - a string that matches HANDLE_REGEX.
Handles
HubHandleError
When a handle does not match HANDLE_REGEX.

Constants§

HANDLE_REGEX
The regex pattern for a hub handle
HANDLE_REGEX_TLK 🔒
Thread local compiled version of HANDLE_REGEX

Functions§

with_handle_regex
Runs f with as argument a reference to a compiled HANDLE_REGEX that is cached thread locally.