From c60dd3ceda6b818271a48765f676bf3505dcbbeb Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 27 Mar 2022 11:38:41 +0000 Subject: feat(handler): more fnmut --- src/handler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/handler.rs') diff --git a/src/handler.rs b/src/handler.rs index 7e297f8..5377703 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -18,7 +18,8 @@ use crate::{returnable::RouteContext, Response}; -pub type RouteResponse = fn(RouteContext<'_>) -> Response<'_>; +pub type RouteResponse = + Box) -> Response<'_> + Send + Sync>; pub type ErrorResponse = Box< dyn FnMut(crate::returnable::ErrorContext<'_>) -> Response<'_> + Send + Sync, >; -- cgit v1.2.3