Skip to content

Commit

Permalink
feat(client): implement Clone for http2::SendRequest (#3042)
Browse files Browse the repository at this point in the history
Closes #3036
  • Loading branch information
vi committed Nov 17, 2022
1 parent 7c158a1 commit 00ea49e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/conn/http2.rs
Expand Up @@ -24,6 +24,12 @@ pub struct SendRequest<B> {
dispatch: dispatch::UnboundedSender<Request<B>, Response<IncomingBody>>,
}

impl<B> Clone for SendRequest<B> {
fn clone(&self) -> SendRequest<B> {
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
Expand Down

0 comments on commit 00ea49e

Please sign in to comment.