Function shutdown_handler

Source
pub async fn shutdown_handler(__arg0: State<Shutdown>) -> Response
Available on crate feature axum only.
Expand description

Axum request handler that calls Shutdown::shutdown.

Expects the Shutdown to be available as state. See Router::with_state.