pub enum NetworkUpdate {
ChannelFailure {
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§
ChannelFailure
An error indicating that a channel failed to route a payment, which should be applied via
NetworkGraph::channel_failed_permanent if permanent.
Fields
NodeFailure
An error indicating that a node failed to route a payment, which should be applied via
NetworkGraph::node_failed_permanent if permanent.
Trait Implementations§
Source§impl Clone for NetworkUpdate
impl Clone for NetworkUpdate
Source§fn clone(&self) -> NetworkUpdate
fn clone(&self) -> NetworkUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkUpdate
impl Debug for NetworkUpdate
Source§impl MaybeReadable for NetworkUpdate
impl MaybeReadable for NetworkUpdate
Source§impl PartialEq for NetworkUpdate
impl PartialEq for NetworkUpdate
Source§impl Writeable for NetworkUpdate
impl Writeable for NetworkUpdate
impl Eq for NetworkUpdate
impl StructuralPartialEq for NetworkUpdate
Auto Trait Implementations§
impl Freeze for NetworkUpdate
impl RefUnwindSafe for NetworkUpdate
impl Send for NetworkUpdate
impl Sync for NetworkUpdate
impl Unpin for NetworkUpdate
impl UnwindSafe for NetworkUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more