From 00ea49e47a565748a4e4657f7047dca5851f8b7a Mon Sep 17 00:00:00 2001 From: Vitaly Shukela Date: Fri, 18 Nov 2022 01:50:57 +0300 Subject: [PATCH] feat(client): implement `Clone` for `http2::SendRequest` (#3042) Closes #3036 --- src/client/conn/http2.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/conn/http2.rs b/src/client/conn/http2.rs index 94dafb9f50..3b51a6114d 100644 --- a/src/client/conn/http2.rs +++ b/src/client/conn/http2.rs @@ -24,6 +24,12 @@ pub struct SendRequest { dispatch: dispatch::UnboundedSender, Response>, } +impl Clone for SendRequest { + fn clone(&self) -> SendRequest { + SendRequest { dispatch: self.dispatch.clone() } + } +} + /// A future that processes all HTTP state for the IO object. /// /// In most cases, this should just be spawned into an executor, so that it