pub enum Error {
Show 17 variants
AlreadyRunning,
NotRunning,
OnchainTxCreationFailed,
ConnectionFailed,
NonUniquePaymentHash,
InvalidAmount,
InvalidInvoice,
InvoiceCreationFailed,
InsufficientFunds,
PaymentFailed,
PeerInfoParseFailed,
ChannelCreationFailed,
ChannelClosingFailed,
PersistenceFailed,
WalletOperationFailed,
WalletSigningFailed,
TxSyncFailed,
}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.
NonUniquePaymentHash
Payment of the given invoice has already been intiated.
InvalidAmount
The given amount is invalid.
InvalidInvoice
The given invoice is invalid.
InvoiceCreationFailed
Invoice creation failed.
InsufficientFunds
There are insufficient funds to complete the given operation.
PaymentFailed
An attempted payment has failed.
PeerInfoParseFailed
A given peer info could not be parsed.
ChannelCreationFailed
A channel could not be opened.
ChannelClosingFailed
A channel could not be closed.
PersistenceFailed
Persistence failed.
WalletOperationFailed
A wallet operation failed.
WalletSigningFailed
A siging operation failed.
TxSyncFailed
A transaction sync operation failed.
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)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<TxSyncError> for Error
impl From<TxSyncError> for Error
source§fn from(_e: TxSyncError) -> Self
fn from(_e: TxSyncError) -> Self
Converts to this type from the input type.
source§impl PartialEq<Error> for Error
impl PartialEq<Error> 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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.