mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 20:01:03 +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.
|
/// When sending a request, what to do on a disconnected recipient.
|
||||||
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||||
pub enum IfDisconnected {
|
pub enum IfDisconnected {
|
||||||
/// Try to connect to the peer.
|
/// Try to connect to the peer.
|
||||||
TryConnect,
|
TryConnect,
|
||||||
|
|||||||
Reference in New Issue
Block a user