Enum breez_sdk_liquid::lightning::ln::channelmanager::FailureCode
pub enum FailureCode {
TemporaryNodeFailure = 8_194,
RequiredNodeFeatureMissing = 24_579,
IncorrectOrUnknownPaymentDetails = 16_399,
}
Expand description
This enum is used to specify which error data to send to peers when failing back an HTLC
using ChannelManager::fail_htlc_backwards_with_reason
.
For more info on failure codes, see https://github.com/lightning/bolts/blob/master/04-onion-routing.md#failure-messages.
Variants§
TemporaryNodeFailure = 8_194
We had a temporary error processing the payment. Useful if no other error codes fit and you want to indicate that the payer may want to retry.
RequiredNodeFeatureMissing = 24_579
We have a required feature which was not in this onion. For example, you may require some additional metadata that was not provided with this payment.
IncorrectOrUnknownPaymentDetails = 16_399
You may wish to use this when a payment_preimage
is unknown, or the CLTV expiry of
the HTLC is too close to the current block height for safe handling.
Using this failure code in ChannelManager::fail_htlc_backwards_with_reason
is
equivalent to calling ChannelManager::fail_htlc_backwards
.
Trait Implementations§
§impl Clone for FailureCode
impl Clone for FailureCode
§fn clone(&self) -> FailureCode
fn clone(&self) -> FailureCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl Copy for FailureCode
Auto Trait Implementations§
impl Freeze for FailureCode
impl RefUnwindSafe for FailureCode
impl Send for FailureCode
impl Sync for FailureCode
impl Unpin for FailureCode
impl UnwindSafe for FailureCode
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request