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
commit6909271fa6488c2ba285aa67f2faa502bd5b6be6 (patch)
treeb76e33cdc88fd9bde2e59af0658c0302745c2be4 /src/response.rs
parentfeat(module): async module support (diff)
downloadwindmark-6909271fa6488c2ba285aa67f2faa502bd5b6be6.tar.xz
windmark-6909271fa6488c2ba285aa67f2faa502bd5b6be6.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) }
+}