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
We received an error which included a full ChannelUpdate message.
Show fields
Fields of ChannelUpdateMessage
msg: ChannelUpdate
The unwrapped message we received
We received an error which indicated only that a channel has been closed
Show fields
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for HTLCFailChannelUpdate
impl Send for HTLCFailChannelUpdate
impl Sync for HTLCFailChannelUpdate
impl Unpin for HTLCFailChannelUpdate
impl UnwindSafe for HTLCFailChannelUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more