Skip to main content

Module startup

Module startup 

Source
Expand description

Startup preflight, phase-aware diagnostics, and typed error mapping.

The server startup sequence is divided into explicit phases. Each phase produces a typed error that preserves the underlying cause chain and identifies the failing phase so operators can act on the first failure without guessing which stage broke.

Structs§

StartupError
Top-level startup error carrying phase context and a typed cause.

Enums§

StartupErrorKind
Typed cause attached to a StartupError.
StartupPhase
Discrete phases of the server startup sequence.
TlsFileStatus
Classification of a single TLS file check.

Functions§

bind_tcp_listener
Bind a TCP listener and classify failures under the bind phase.
build_tls_server_config
Build a rustls::ServerConfig from the resolved Config.
check_tls_file
Check whether a single path refers to a readable regular file.
log_phase
Log the startup phase transition at INFO level.
log_startup_failure
Log a startup failure at ERROR level with phase context.
log_transport_summary
Log transport diagnostics after config validation succeeds.
preflight_tls_files
Run preflight checks on all configured TLS file paths.