Skip to content

Glossary: Rust Beyond the Basics

State

Also written: shared state, application state

Data an Axum router hands to every handler, stored with `.with_state(...)` and read with the `State` extractor, usually an `Arc<Mutex<...>>`.

Where the book teaches it

Related terms

extractorMutex