Skip to main content

init_default_registry

Function init_default_registry 

Source
pub fn init_default_registry()
Expand description

Register the facade’s enabled services and configuration-driven layers in the global OperatorRegistry.

This function registers memory and the services enabled by services-* features on the current target. The built-in configuration layer names are chaos, concurrent_limit, logging, mime_guess, retry, throttle, timeout, and tracing, each gated by its corresponding layers-* feature. Registration makes these layers available for selection in layers when loading an operator.

The first call replaces earlier registrations for those service and layer names. Register your own replacements after initialization to keep them across subsequent calls.

Use install_default to also install the process-wide runtime defaults and the reqwest http context factory. The auto-register-services constructor normally calls it before main. Some linkers omit constructors from staticlib builds, so call it explicitly if you need those defaults in such a build.