diff options
| author | Fuwn <[email protected]> | 2022-03-27 11:26:47 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-27 11:26:47 +0000 |
| commit | d971186326a6300bad86d94ff1e973c4ca3603da (patch) | |
| tree | 255b1cf037433f2787446b603147a71a40cb3772 /src/handler.rs | |
| parent | feat(pre/post_route_callback): fnmut closure (diff) | |
| download | windmark-d971186326a6300bad86d94ff1e973c4ca3603da.tar.xz windmark-d971186326a6300bad86d94ff1e973c4ca3603da.zip | |
feat(handler): fnmut partial
Diffstat (limited to 'src/handler.rs')
| -rw-r--r-- | src/handler.rs | 2 |
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>; |