Skip to main content

Module app

Module app 

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

state

Structs§

AppStateBuilder
A builder for constructing AppState.