diff options
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) } +} |