Skip to content

Commit

Permalink
protocols/request-response: Derive Clone for {Inbound,Outbound}Failure (
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden authored Dec 16, 2020
1 parent 3af5ba4 commit 0968b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions protocols/request-response/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
to the underlying connection closing.
[PR 1886](https://github.com/libp2p/rust-libp2p/pull/1886).

- Derive Clone for `InboundFailure` and `Outbound}Failure`.
[PR 1891](https://github.com/libp2p/rust-libp2p/pull/1891)

# 0.7.0 [2020-12-08]

- Refine emitted events for inbound requests, introducing
Expand Down
4 changes: 2 additions & 2 deletions protocols/request-response/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub enum RequestResponseEvent<TRequest, TResponse, TChannelResponse = TResponse>

/// Possible failures occurring in the context of sending
/// an outbound request and receiving the response.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum OutboundFailure {
/// The request could not be sent because a dialing attempt failed.
DialFailure,
Expand All @@ -183,7 +183,7 @@ pub enum OutboundFailure {

/// Possible failures occurring in the context of receiving an
/// inbound request and sending a response.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum InboundFailure {
/// The inbound request timed out, either while reading the
/// incoming request or before a response is sent, e.g. if
Expand Down

0 comments on commit 0968b04

Please sign in to comment.