From 6909271fa6488c2ba285aa67f2faa502bd5b6be6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Wed, 5 Apr 2023 02:47:07 +0000 Subject: feat(route): merge async and sync mount functions !! --- src/response.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/response.rs') 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; + type Output = Self; + + fn into_future(self) -> Self::IntoFuture { std::future::ready(self) } +} -- cgit v1.2.3