Enum NodeError

Source
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.

§

LiquiditySourceUnavailable

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 Clone for Error

Source§

fn clone(&self) -> Error

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CalculateFeeError> for Error

Source§

fn from(_: BdkChainCalculateFeeError) -> Self

Converts to this type from the input type.
Source§

impl From<CannotConnectError> for Error

Source§

fn from(_: BdkChainConnectionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTxError> for Error

Source§

fn from(e: BdkCreateTxError) -> Self

Converts to this type from the input type.
Source§

impl From<ExtractTxError> for Error

Source§

fn from(_: BdkExtractTxError) -> Self

Converts to this type from the input type.
Source§

impl From<SignerError> for Error

Source§

fn from(_: BdkSignerError) -> Self

Converts to this type from the input type.
Source§

impl From<TxSyncError> for Error

Source§

fn from(_e: TxSyncError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for Error

Source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Error

Source§

impl Eq for Error

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,