mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 17:57:56 +00:00
Derive common classes for IfDisconnected. (#8346)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user