Expand description
Application state and its builder.
This module provides State, the shared application context that Axum injects
into every route handler, and AppStateBuilder, the fluent builder used to
construct it during startup and in tests.
§Design note
State is intentionally cheap to clone: the SqlitePool and session_cache both
use Arc-backed shared ownership internally, and Service is a thin wrapper over
a PathBuf. Cloning State is therefore an O(1) reference-count increment.
Re-exports§
pub use state::State;
Modules§
Structs§
- AppState
Builder - A builder for constructing
AppState.