Enum lightning::events::PathFailure
source · pub enum PathFailure {
InitialSend {
err: APIError,
},
OnPath {
network_update: Option<NetworkUpdate>,
},
}
Expand description
When the payment path failure took place and extra details about it. PathFailure::OnPath
may
contain a NetworkUpdate
that needs to be applied to the NetworkGraph
.
Variants§
InitialSend
We failed to initially send the payment and no HTLC was committed to. Contains the relevant error.
OnPath
Fields
§
network_update: Option<NetworkUpdate>
If present, this NetworkUpdate
should be applied to the NetworkGraph
so that routing
decisions can take into account the update.
A hop on the path failed to forward our payment.
Trait Implementations§
source§impl Clone for PathFailure
impl Clone for PathFailure
source§fn clone(&self) -> PathFailure
fn clone(&self) -> PathFailure
Returns a copy 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 PathFailure
impl Debug for PathFailure
source§impl MaybeReadable for PathFailure
impl MaybeReadable for PathFailure
source§impl PartialEq<PathFailure> for PathFailure
impl PartialEq<PathFailure> for PathFailure
source§fn eq(&self, other: &PathFailure) -> bool
fn eq(&self, other: &PathFailure) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Writeable for PathFailure
impl Writeable for PathFailure
impl Eq for PathFailure
impl StructuralEq for PathFailure
impl StructuralPartialEq for PathFailure
Auto Trait Implementations§
impl RefUnwindSafe for PathFailure
impl Send for PathFailure
impl Sync for PathFailure
impl Unpin for PathFailure
impl UnwindSafe for PathFailure
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