Skip to content

Commit

Permalink
feat(client) implement Clone for http2::SendRequest
Browse files Browse the repository at this point in the history
Resolves hyperium#3036.
  • Loading branch information
vi committed Nov 4, 2022
1 parent 75aac9f commit 7122e2d
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 7122e2d

Please sign in to comment.