pub enum NodeError {
Show 52 variants
AlreadyRunning,
NotRunning,
OnchainTxCreationFailed,
ConnectionFailed,
InvoiceCreationFailed,
InvoiceRequestCreationFailed,
OfferCreationFailed,
RefundCreationFailed,
PaymentSendingFailed,
InvalidCustomTlvs,
ProbeSendingFailed,
ChannelCreationFailed,
ChannelClosingFailed,
ChannelConfigUpdateFailed,
PersistenceFailed,
FeerateEstimationUpdateFailed,
FeerateEstimationUpdateTimeout,
WalletOperationFailed,
WalletOperationTimeout,
OnchainTxSigningFailed,
TxSyncFailed,
TxSyncTimeout,
GossipUpdateFailed,
GossipUpdateTimeout,
LiquidityRequestFailed,
UriParameterParsingFailed,
InvalidAddress,
InvalidSocketAddress,
InvalidPublicKey,
InvalidSecretKey,
InvalidOfferId,
InvalidNodeId,
InvalidPaymentId,
InvalidPaymentHash,
InvalidPaymentPreimage,
InvalidPaymentSecret,
InvalidAmount,
InvalidInvoice,
InvalidOffer,
InvalidRefund,
InvalidChannelId,
InvalidNetwork,
InvalidUri,
InvalidQuantity,
InvalidNodeAlias,
InvalidDateTime,
InvalidFeeRate,
DuplicatePayment,
UnsupportedCurrency,
InsufficientFunds,
LiquiditySourceUnavailable,
LiquidityFeeTooHigh,
}
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.
InvoiceRequestCreationFailed
Invoice request creation failed.
OfferCreationFailed
Offer creation failed.
RefundCreationFailed
Refund creation failed.
PaymentSendingFailed
Sending a payment has failed.
InvalidCustomTlvs
Sending of spontaneous payment with custom TLVs 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 configuration could not be updated.
PersistenceFailed
Persistence failed.
FeerateEstimationUpdateFailed
A fee rate estimation update failed.
FeerateEstimationUpdateTimeout
A fee rate estimation update timed out.
WalletOperationFailed
A wallet operation failed.
WalletOperationTimeout
A wallet operation timed out.
OnchainTxSigningFailed
A signing operation for transaction failed.
TxSyncFailed
A transaction sync operation failed.
TxSyncTimeout
A transaction sync operation timed out.
GossipUpdateFailed
A gossip updating operation failed.
GossipUpdateTimeout
A gossip updating operation timed out.
LiquidityRequestFailed
A liquidity request operation failed.
UriParameterParsingFailed
Parsing a URI parameter has 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.
InvalidOfferId
The given offer id is invalid.
InvalidNodeId
The given node id is invalid.
InvalidPaymentId
The given payment id is invalid.
InvalidPaymentHash
The given payment hash is invalid.
InvalidPaymentPreimage
The given payment pre-image is invalid.
InvalidPaymentSecret
The given payment secret is invalid.
InvalidAmount
The given amount is invalid.
InvalidInvoice
The given invoice is invalid.
InvalidOffer
The given offer is invalid.
InvalidRefund
The given refund is invalid.
InvalidChannelId
The given channel ID is invalid.
InvalidNetwork
The given network is invalid.
InvalidUri
The given URI is invalid.
InvalidQuantity
The given quantity is invalid.
InvalidNodeAlias
The given node alias is invalid.
InvalidDateTime
The given date time is invalid.
InvalidFeeRate
The given fee rate is invalid.
DuplicatePayment
A payment with the given hash has already been initiated.
UnsupportedCurrency
The provided offer was denonminated in an unsupported currency.
InsufficientFunds
The available funds are insufficient to complete the given operation.
The given operation failed due to the required liquidity source being unavailable.
LiquidityFeeTooHigh
The given operation failed due to the LSP’s required opening fee being too high.
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<CalculateFeeError> for Error
impl From<CalculateFeeError> for Error
Source§fn from(_: BdkChainCalculateFeeError) -> Self
fn from(_: BdkChainCalculateFeeError) -> Self
Source§impl From<CannotConnectError> for Error
impl From<CannotConnectError> for Error
Source§fn from(_: BdkChainConnectionError) -> Self
fn from(_: BdkChainConnectionError) -> Self
Source§impl From<CreateTxError> for Error
impl From<CreateTxError> for Error
Source§fn from(e: BdkCreateTxError) -> Self
fn from(e: BdkCreateTxError) -> Self
Source§impl From<ExtractTxError> for Error
impl From<ExtractTxError> for Error
Source§fn from(_: BdkExtractTxError) -> Self
fn from(_: BdkExtractTxError) -> Self
Source§impl From<SignerError> for Error
impl From<SignerError> for Error
Source§fn from(_: BdkSignerError) -> Self
fn from(_: BdkSignerError) -> Self
Source§impl From<TxSyncError> for Error
impl From<TxSyncError> for Error
Source§fn from(_e: TxSyncError) -> Self
fn from(_e: TxSyncError) -> Self
impl Copy for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.