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; there is no process-wide fallback in 0.10 — code that runs outside HTTP dispatch (in-process Mediator::send, tests, background work) must enter a runtime explicitly with DispatchRuntime::run.

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.