pub trait Handler {
type Output: IntoFunctionResponse;
type Future: Future<Output = Self::Output> + Send + 'static;
// Required method
fn call(&self, req: Request, state: AppState) -> Self::Future;
}Expand description
Trait that abstracts over handler function signatures that return types implementing IntoFunctionResponse