Expand description
Route-level deadline enforcement for #[Timeout("…")].
Wraps the whole handler thunk (guards + extraction + body) in
tokio::time::timeout: on expiry the future is dropped — the worker
is released immediately — and the client receives 504 Gateway Timeout
as RFC-7807 ProblemDetails. This is the backstop that keeps a slow
dependency from holding request tasks hostage past their SLA.
Functions§
- parse_
duration_ millis - Parse
"250ms","2s","1m"(used at macro-expansion time via the macro crate’s own copy; kept here for runtime construction too).