Skip to main content

Module startup

Module startup 

Source
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§

StartupCoordinator
Ordered startup phase coordinator.
StartupPhaseOutcome
Value returned by a startup phase together with its execution report.
StartupPhaseReport
Report for one executed startup phase.
StartupReport
Aggregate report for a startup run.

Enums§

RuntimeTempDirError
Error returned by runtime temporary directory helpers.
StartupPhaseFailurePolicy
Failure policy for one startup phase.
StartupPhaseStatus
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.