diff options
| author | Fuwn <[email protected]> | 2023-04-05 02:47:07 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-05 02:47:07 +0000 |
| commit | 6909271fa6488c2ba285aa67f2faa502bd5b6be6 (patch) | |
| tree | b76e33cdc88fd9bde2e59af0658c0302745c2be4 /src/response.rs | |
| parent | feat(module): async module support (diff) | |
| download | windmark-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.rs | 7 |
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) } +} |