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

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

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.

Show fields

Fields of ChannelUpdateMessage

msg: ChannelUpdate

The unwrapped message we received

ChannelClosed

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

Show fields

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

Show fields

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.