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
commitd971186326a6300bad86d94ff1e973c4ca3603da (patch)
tree255b1cf037433f2787446b603147a71a40cb3772 /src/handler.rs
parentfeat(pre/post_route_callback): fnmut closure (diff)
downloadwindmark-d971186326a6300bad86d94ff1e973c4ca3603da.tar.xz
windmark-d971186326a6300bad86d94ff1e973c4ca3603da.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>;