@@ -33,16 +33,24 @@ pub enum Error {
3333 PersistenceFailed ,
3434 /// A fee rate estimation update failed.
3535 FeerateEstimationUpdateFailed ,
36+ /// A fee rate estimation update timed out.
37+ FeerateEstimationUpdateTimeout ,
3638 /// A wallet operation failed.
3739 WalletOperationFailed ,
40+ /// A wallet operation timed out.
41+ WalletOperationTimeout ,
3842 /// A signing operation for transaction failed.
3943 OnchainTxSigningFailed ,
4044 /// A signing operation for message failed.
4145 MessageSigningFailed ,
4246 /// A transaction sync operation failed.
4347 TxSyncFailed ,
48+ /// A transaction sync operation timed out.
49+ TxSyncTimeout ,
4450 /// A gossip updating operation failed.
4551 GossipUpdateFailed ,
52+ /// A gossip updating operation timed out.
53+ GossipUpdateTimeout ,
4654 /// A liquidity request operation failed.
4755 LiquidityRequestFailed ,
4856 /// The given address is invalid.
@@ -111,11 +119,17 @@ impl fmt::Display for Error {
111119 Self :: FeerateEstimationUpdateFailed => {
112120 write ! ( f, "Failed to update fee rate estimates." )
113121 } ,
122+ Self :: FeerateEstimationUpdateTimeout => {
123+ write ! ( f, "Updating fee rate estimates timed out." )
124+ } ,
114125 Self :: WalletOperationFailed => write ! ( f, "Failed to conduct wallet operation." ) ,
126+ Self :: WalletOperationTimeout => write ! ( f, "A wallet operation timed out." ) ,
115127 Self :: OnchainTxSigningFailed => write ! ( f, "Failed to sign given transaction." ) ,
116128 Self :: MessageSigningFailed => write ! ( f, "Failed to sign given message." ) ,
117129 Self :: TxSyncFailed => write ! ( f, "Failed to sync transactions." ) ,
130+ Self :: TxSyncTimeout => write ! ( f, "Syncing transactions timed out." ) ,
118131 Self :: GossipUpdateFailed => write ! ( f, "Failed to update gossip data." ) ,
132+ Self :: GossipUpdateTimeout => write ! ( f, "Updating gossip data timed out." ) ,
119133 Self :: LiquidityRequestFailed => write ! ( f, "Failed to request inbound liquidity." ) ,
120134 Self :: InvalidAddress => write ! ( f, "The given address is invalid." ) ,
121135 Self :: InvalidSocketAddress => write ! ( f, "The given network address is invalid." ) ,
0 commit comments