Skip to content

Glossary: Rust Beyond the Basics

Router

Also written: route, routes, with_state

Axum's type that maps requests (method and path) to handlers; `.with_state(...)` gives every handler shared data.

Where the book teaches it

Related terms

handlerStateAxum