Derive common classes for IfDisconnected. (#8346)

This commit is contained in:
Robert Klotzner
2021-03-12 20:54:44 +01:00
committed by GitHub
parent f725975861
commit def7b4dca2
@@ -197,6 +197,7 @@ impl From<(Cow<'static, str>, RequestId)> for ProtocolRequestId {
}
/// When sending a request, what to do on a disconnected recipient.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum IfDisconnected {
/// Try to connect to the peer.
TryConnect,