From 7122e2d40fa95d8658217b755ae62a01d84598ab Mon Sep 17 00:00:00 2001 From: Vitaly _Vi Shukela Date: Thu, 3 Nov 2022 18:11:59 +0100 Subject: [PATCH] feat(client) implement Clone for http2::SendRequest Resolves #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