Expand description
Startup phase coordination primitives.
This module provides the product-neutral mechanics for ordered startup phase execution: duration collection, optional phase failure handling, report aggregation, and shared tracing. Product crates still own concrete initialization work such as migrations, cache creation, driver loading, runtime config reload, audit setup, and application state construction.
Structs§
- Startup
Coordinator - Ordered startup phase coordinator.
- Startup
Phase Outcome - Value returned by a startup phase together with its execution report.
- Startup
Phase Report - Report for one executed startup phase.
- Startup
Report - Aggregate report for a startup run.
Enums§
- Runtime
Temp DirError - Error returned by runtime temporary directory helpers.
- Startup
Phase Failure Policy - Failure policy for one startup phase.
- Startup
Phase Status - Final status for one startup phase.
Functions§
- create_
runtime_ temp_ dir_ guard - Creates a scope-local runtime temporary directory guarded by RAII cleanup.
- ensure_
runtime_ temp_ dir - Ensures the short-lived runtime temporary directory exists.
- run_
optional_ startup_ phase - Runs one optional startup phase and returns its report.
- run_
required_ startup_ phase - Runs one required startup phase that returns a product-owned value.