pub type MiddlewareDiRegistration = (TypeId, Arc<dyn Any + Send + Sync>);Expand description
Type-erased DI singleton registration entry contributed by a middleware.
Pairs the concrete TypeId of T with an Arc<dyn Any + Send + Sync> that
can be inserted directly into a DI singleton scope keyed by that TypeId.
This indirection lets reinhardt-http expose a DI hook on the Middleware
trait without taking a dependency on reinhardt-di (which would create a
circular crate dependency).