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§
- Startup
Error - Top-level startup error carrying phase context and a typed cause.
Enums§
- Startup
Error Kind - Typed cause attached to a
StartupError. - Startup
Phase - Discrete phases of the server startup sequence.
- TlsFile
Status - 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::ServerConfigfrom the resolvedConfig. - check_
tls_ file - Check whether a single path refers to a readable regular file.
- log_
phase - Log the startup phase transition at
INFOlevel. - log_
startup_ failure - Log a startup failure at
ERRORlevel 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.