pub enum HTLCHandlingFailureReason {
Downstream,
Local {
reason: LocalHTLCFailureReason,
},
}Expand description
The reason for HTLC failures in Event::HTLCHandlingFailed.
Variants§
Downstream
The forwarded HTLC was failed back by the downstream node with an encrypted error reason.
Local
The HTLC was failed locally by our node.
Fields
§
reason: LocalHTLCFailureReasonThe reason that our node chose to fail the HTLC.
Trait Implementations§
Source§impl Clone for HTLCHandlingFailureReason
impl Clone for HTLCHandlingFailureReason
Source§fn clone(&self) -> HTLCHandlingFailureReason
fn clone(&self) -> HTLCHandlingFailureReason
Returns a duplicate 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 moreSource§impl Debug for HTLCHandlingFailureReason
impl Debug for HTLCHandlingFailureReason
Source§impl From<LocalHTLCFailureReason> for HTLCHandlingFailureReason
impl From<LocalHTLCFailureReason> for HTLCHandlingFailureReason
Source§fn from(value: LocalHTLCFailureReason) -> Self
fn from(value: LocalHTLCFailureReason) -> Self
Converts to this type from the input type.
Source§impl Readable for HTLCHandlingFailureReason
impl Readable for HTLCHandlingFailureReason
Source§impl Writeable for HTLCHandlingFailureReason
impl Writeable for HTLCHandlingFailureReason
impl Eq for HTLCHandlingFailureReason
impl StructuralPartialEq for HTLCHandlingFailureReason
Auto Trait Implementations§
impl Freeze for HTLCHandlingFailureReason
impl RefUnwindSafe for HTLCHandlingFailureReason
impl Send for HTLCHandlingFailureReason
impl Sync for HTLCHandlingFailureReason
impl Unpin for HTLCHandlingFailureReason
impl UnwindSafe for HTLCHandlingFailureReason
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<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<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.