Skip to main content

Module component

Module component 

Source
Expand description

Runtime component registration primitives.

This module ties together the reusable runtime registries that already live in this crate. It lets product crates describe subsystems once, then attach health checks and shutdown phases without duplicating central dispatch tables. Product crates still own resource construction, application state assembly, business-specific startup ordering, and how reports are exposed.

Component dependencies are enforced by RuntimeComponentRegistry when it runs component-owned shutdown phases. Lower-level coordinators such as crate::ShutdownCoordinator remain simple ordered executors for callers that already have a fixed sequence.

Structs§

RuntimeComponentBuilder
Builder for one runtime component registration.
RuntimeComponentDescriptor
Static metadata for a registered runtime component.
RuntimeComponentRegistry
Registry for runtime component metadata and lifecycle hooks.
RuntimeShutdownDescriptor
Static shutdown metadata for a registered component.
RuntimeStartupDescriptor
Static startup metadata for a registered component.
RuntimeTaskDescriptor
Static runtime task metadata for a registered component.

Enums§

RuntimeComponentGraphError
Component dependency graph validation error.
RuntimeComponentKind
Broad category for a registered runtime component.

Traits§

RuntimeComponentBundle
Product-owned runtime component bundle.