Skip to main content

Module registry

Module registry 

Source

Modules§

priority
Shared lifecycle priority definitions for providers/reloadables.

Structs§

ProviderOrder
Type-based lifecycle ordering hints.
Registry
Type-erased provider registry used for service discovery and DI-style lookup. Registration happens during bootstrap and runtime access is read-only via typed resolves. We keep the underlying maps behind RwLock<HashMap<..>> so registration stays simple while lookup only holds a short-lived read lock long enough to clone the stored Arc.

Enums§

Error

Traits§

Provider
Any service that can be registered in the DI registry.
ReloadState
Reloadable
Anything that can hot-reload itself when config changes.
Runnable
Capability trait for providers that produce a long-running runtime task.

Type Aliases§

BoxError
Result