Enum breez_sdk_core::lightning::events::HTLCDestination
pub enum HTLCDestination {
NextHopChannel {
node_id: Option<PublicKey>,
channel_id: ChannelId,
},
UnknownNextHop {
requested_forward_scid: u64,
},
InvalidForward {
requested_forward_scid: u64,
},
FailedPayment {
payment_hash: PaymentHash,
},
}
Expand description
Intended destination of a failed HTLC as indicated in Event::HTLCHandlingFailed
.
Variants§
NextHopChannel
We tried forwarding to a channel but failed to do so. An example of such an instance is when there is insufficient capacity in our outbound channel.
Fields
UnknownNextHop
Scenario where we are unsure of the next node to forward the HTLC to.
InvalidForward
We couldn’t forward to the outgoing scid. An example would be attempting to send a duplicate intercept HTLC.
FailedPayment
Failure scenario where an HTLC may have been forwarded to be intended for us, but is invalid for some reason, so we reject it.
Some of the reasons may include:
- HTLC Timeouts
- Excess HTLCs for a payment that we have already fully received, over-paying for the payment,
- The counterparty node modified the HTLC in transit,
- A probing attack where an intermediary node is trying to detect if we are the ultimate recipient for a payment.
Fields
§
payment_hash: PaymentHash
The payment hash of the payment we attempted to process.
Trait Implementations§
§impl Clone for HTLCDestination
impl Clone for HTLCDestination
§fn clone(&self) -> HTLCDestination
fn clone(&self) -> HTLCDestination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for HTLCDestination
impl Debug for HTLCDestination
§impl MaybeReadable for HTLCDestination
impl MaybeReadable for HTLCDestination
§fn read<R>(reader: &mut R) -> Result<Option<HTLCDestination>, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<Option<HTLCDestination>, DecodeError>where
R: Read,
Reads a
Self
in from the given Read
.§impl PartialEq for HTLCDestination
impl PartialEq for HTLCDestination
§impl Writeable for HTLCDestination
impl Writeable for HTLCDestination
impl Eq for HTLCDestination
impl StructuralPartialEq for HTLCDestination
Auto Trait Implementations§
impl Freeze for HTLCDestination
impl RefUnwindSafe for HTLCDestination
impl Send for HTLCDestination
impl Sync for HTLCDestination
impl Unpin for HTLCDestination
impl UnwindSafe for HTLCDestination
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Forward to the method defined on the type
Any
.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.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
Compare self to
key
and return true
if they are equal.§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key
and return true
if they are equal.§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>
Wrap the input message
T
in a tonic::Request