aboutsummaryrefslogtreecommitdiff
path: root/src/handler.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-27 11:26:47 +0000
committerFuwn <[email protected]>2022-03-27 11:26:47 +0000
commita8144d9b04f17bbb0f00aa93ad215827641111f4 (patch)
tree255b1cf037433f2787446b603147a71a40cb3772 /src/handler.rs
parentfeat(pre/post_route_callback): fnmut closure (diff)
downloadwindmark-a8144d9b04f17bbb0f00aa93ad215827641111f4.tar.xz
windmark-a8144d9b04f17bbb0f00aa93ad215827641111f4.zip
feat(handler): fnmut partial
Diffstat (limited to 'src/handler.rs')
-rw-r--r--src/handler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handler.rs b/src/handler.rs
index b1e6afe..7e297f8 100644
--- a/src/handler.rs
+++ b/src/handler.rs
@@ -27,4 +27,4 @@ pub type Callback = Box<
+ Send
+ Sync,
>;
-pub type Partial = fn(RouteContext<'_>) -> String;
+pub type Partial = Box<dyn FnMut(RouteContext<'_>) -> String + Send + Sync>;