Skip to main content

Module state

Module state 

Source
Expand description

Application state — a single Clone-able struct injected into every handler via axum::extract::State.

All fields are Arc<…> so AppState::clone() is cheap. Axum clones the state once per request.

Structs§

AppState
Per-server dependency container shared across all handlers.