protocols/request-response: Derive Clone for {Inbound,Outbound}Failure (#1891)

This commit is contained in:
Max Inden 2020-12-16 16:38:45 +01:00 committed by GitHub
parent 3af5ba45f3
commit 0968b049fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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,
@ -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