aboutsummaryrefslogtreecommitdiff
path: root/src/response.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-05 02:47:07 +0000
committerFuwn <[email protected]>2023-04-05 02:47:07 +0000
commitb455bb3e4c8874c444b2c351eaa322b6d680f735 (patch)
treeb76e33cdc88fd9bde2e59af0658c0302745c2be4 /src/response.rs
parentfeat(module): async module support (diff)
downloadwindmark-b455bb3e4c8874c444b2c351eaa322b6d680f735.tar.xz
windmark-b455bb3e4c8874c444b2c351eaa322b6d680f735.zip
feat(route): merge async and sync mount functions !!
Diffstat (limited to 'src/response.rs')
-rw-r--r--src/response.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/response.rs b/src/response.rs
index 2a615a7..9a8efb8 100644
--- a/src/response.rs
+++ b/src/response.rs
@@ -144,3 +144,10 @@ impl Response {
self
}
}
+
+impl std::future::IntoFuture for Response {
+ type IntoFuture = std::future::Ready<Self::Output>;
+ type Output = Self;
+
+ fn into_future(self) -> Self::IntoFuture { std::future::ready(self) }
+}