Skip to main content

Module dispatch_runtime

Module dispatch_runtime 

Source
Expand description

Per-request dispatch runtime — instance-scoped provider and handler cache.

Host stores a DispatchRuntime and scopes it to each HTTP request via a task-local. Macro-generated dispatch and Mediator read from the active runtime when present, falling back to process-wide globals for backward compatibility (in-process Mediator::send without HTTP context).

Structs§

DispatchRuntime
Provider + handler registry for one host instance.

Functions§

dispatch_handler_cache
Handler registry for the active dispatch context.
dispatch_provider
Provider for HTTP dispatch and #[handler(inject)] factories.