Skip to main content

Module state

Module state 

Source
Expand description

Shared application state threaded through axum handlers via Arc<AppState>.

AppState is constructed once at startup and cloned (cheaply, via Arc) into every axum handler. It holds the parsed config, database pools, per-CA key material, and optional subsystem state (HSM, OTP, audit).

Structsยง

AppState
Top-level application state cloned into every axum handler.
AppStateBuilder
Builder for constructing AppState during server startup.
CaState
Per-CA key material and issuance policy.