Skip to content

Commit 00ea49e

Browse files
authoredNov 17, 2022
feat(client): implement Clone for http2::SendRequest (#3042)
Closes #3036
1 parent 7c158a1 commit 00ea49e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/client/conn/http2.rs

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ pub struct SendRequest<B> {
2424
dispatch: dispatch::UnboundedSender<Request<B>, Response<IncomingBody>>,
2525
}
2626

27+
impl<B> Clone for SendRequest<B> {
28+
fn clone(&self) -> SendRequest<B> {
29+
SendRequest { dispatch: self.dispatch.clone() }
30+
}
31+
}
32+
2733
/// A future that processes all HTTP state for the IO object.
2834
///
2935
/// In most cases, this should just be spawned into an executor, so that it

0 commit comments

Comments
 (0)
Please sign in to comment.