[][src]Enum lightning::ln::msgs::HTLCFailChannelUpdate

pub enum HTLCFailChannelUpdate {
    ChannelUpdateMessage {
        msg: ChannelUpdate,
    },
    ChannelClosed {
        short_channel_id: u64,
        is_permanent: bool,
    },
    NodeFailure {
        node_id: PublicKey,
        is_permanent: bool,
    },
}

The information we received from a peer along the route of a payment we originated. This is returned by ChannelMessageHandler::handle_update_fail_htlc to be passed into RoutingMessageHandler::handle_htlc_fail_channel_update to update our network map.

Variants

ChannelUpdateMessage

We received an error which included a full ChannelUpdate message.

Fields of ChannelUpdateMessage

msg: ChannelUpdate

The unwrapped message we received

ChannelClosed

We received an error which indicated only that a channel has been closed

Fields of ChannelClosed

short_channel_id: u64

The short_channel_id which has now closed.

is_permanent: bool

when this true, this channel should be permanently removed from the consideration. Otherwise, this channel can be restored as new channel_update is received

NodeFailure

We received an error which indicated only that a node has failed

Fields of NodeFailure

node_id: PublicKey

The node_id that has failed.

is_permanent: bool

when this true, node should be permanently removed from the consideration. Otherwise, the channels connected to this node can be restored as new channel_update is received

Trait Implementations

impl Clone for HTLCFailChannelUpdate[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.