Skip to main content

Module handler

Module handler 

Source
Expand description

Handler abstraction (spec §4.1): a handler is a plain async fn whose parameters implement FromRequest and whose return implements IntoResponse. Extraction failures short-circuit into error responses.

Traits§

Handler
Implemented for async fns of arity 0..=8 over FromRequest parameters.