pub enum NodeError {
Show 30 variants
AlreadyRunning,
NotRunning,
OnchainTxCreationFailed,
ConnectionFailed,
InvoiceCreationFailed,
PaymentSendingFailed,
ProbeSendingFailed,
ChannelCreationFailed,
ChannelClosingFailed,
ChannelConfigUpdateFailed,
PersistenceFailed,
FeerateEstimationUpdateFailed,
WalletOperationFailed,
OnchainTxSigningFailed,
MessageSigningFailed,
TxSyncFailed,
GossipUpdateFailed,
InvalidAddress,
InvalidSocketAddress,
InvalidPublicKey,
InvalidSecretKey,
InvalidPaymentHash,
InvalidPaymentPreimage,
InvalidPaymentSecret,
InvalidAmount,
InvalidInvoice,
InvalidChannelId,
InvalidNetwork,
DuplicatePayment,
InsufficientFunds,
}
Expand description
An error that possibly needs to be handled by the user.
Variants§
AlreadyRunning
Returned when trying to start crate::Node
while it is already running.
NotRunning
Returned when trying to stop crate::Node
while it is not running.
OnchainTxCreationFailed
An on-chain transaction could not be created.
ConnectionFailed
A network connection has been closed.
InvoiceCreationFailed
Invoice creation failed.
PaymentSendingFailed
Sending a payment has failed.
ProbeSendingFailed
Sending a payment probe has failed.
ChannelCreationFailed
A channel could not be opened.
ChannelClosingFailed
A channel could not be closed.
ChannelConfigUpdateFailed
A channel config could not be updated.
PersistenceFailed
Persistence failed.
FeerateEstimationUpdateFailed
A fee rate estimation update failed.
WalletOperationFailed
A wallet operation failed.
OnchainTxSigningFailed
A signing operation for transaction failed.
MessageSigningFailed
A signing operation for message failed.
TxSyncFailed
A transaction sync operation failed.
GossipUpdateFailed
A gossip updating operation failed.
InvalidAddress
The given address is invalid.
InvalidSocketAddress
The given network address is invalid.
InvalidPublicKey
The given public key is invalid.
InvalidSecretKey
The given secret key is invalid.
InvalidPaymentHash
The given payment hash is invalid.
InvalidPaymentPreimage
The given payment preimage is invalid.
InvalidPaymentSecret
The given payment secret is invalid.
InvalidAmount
The given amount is invalid.
InvalidInvoice
The given invoice is invalid.
InvalidChannelId
The given channel ID is invalid.
InvalidNetwork
The given network is invalid.
DuplicatePayment
A payment with the given hash has already been intiated.
InsufficientFunds
There are insufficient funds to complete the given operation.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<TxSyncError> for Error
impl From<TxSyncError> for Error
source§fn from(_e: TxSyncError) -> Self
fn from(_e: TxSyncError) -> Self
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.