Skip to main content

Module context

Module context 

Source

Structs§

Context
Per-request context passed to every action.

Traits§

IntoActionResponse
Lets a #[controller] action body evaluate to either a Response or a Result<Response, E>. The macro wraps every action body in into_action_response(), so actions can use ? for fallible work (DB calls, body parsing) and an Err becomes a 500 response.