Struct lnp::message::UpdateFailHtlc[][src]

pub struct UpdateFailHtlc {
    pub channel_id: ChannelId,
    pub htlc_id: u64,
    pub reason: Vec<u8>,
}

Fields

channel_id: ChannelId

The channel ID

htlc_id: u64

The HTLC ID

reason: Vec<u8>

The reason field is an opaque encrypted blob for the benefit of the original HTLC initiator, as defined in BOLT #4; however, there’s a special malformed failure variant for the case where the peer couldn’t parse it: in this case the current node instead takes action, encrypting it into a update_fail_htlc for relaying.

Trait Implementations

impl Clone for UpdateFailHtlc[src]

impl Debug for UpdateFailHtlc[src]

impl Display for UpdateFailHtlc[src]

impl Eq for UpdateFailHtlc[src]

impl LightningDecode for UpdateFailHtlc[src]

impl LightningEncode for UpdateFailHtlc[src]

impl PartialEq<UpdateFailHtlc> for UpdateFailHtlc[src]

impl StrictDecode for UpdateFailHtlc[src]

impl StrictEncode for UpdateFailHtlc[src]

impl StructuralEq for UpdateFailHtlc[src]

impl StructuralPartialEq for UpdateFailHtlc[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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