Enum lightning::routing::network_graph::NetworkUpdate [−][src]
pub enum NetworkUpdate {
ChannelUpdateMessage {
msg: ChannelUpdate,
},
ChannelClosed {
short_channel_id: u64,
is_permanent: bool,
},
NodeFailure {
node_id: PublicKey,
is_permanent: bool,
},
}
Expand description
Update to the NetworkGraph
based on payment failure information conveyed via the Onion
return packet by a node along the route. See BOLT #4 for details.
Variants
An error indicating a channel_update
messages should be applied via
NetworkGraph::update_channel
.
Fields of ChannelUpdateMessage
msg: ChannelUpdate
The update to apply via NetworkGraph::update_channel
.
An error indicating only that a channel has been closed, which should be applied via
NetworkGraph::close_channel_from_update
.
Fields of ChannelClosed
An error indicating only that a node has failed, which should be applied via
NetworkGraph::fail_node
.
Fields of NodeFailure
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Writes self out to the given Writer
Writes self out to a Vec
Writes self out to a Vec
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Auto Trait Implementations
impl RefUnwindSafe for NetworkUpdate
impl Send for NetworkUpdate
impl Sync for NetworkUpdate
impl Unpin for NetworkUpdate
impl UnwindSafe for NetworkUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more