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
A hop on the path failed to forward our payment.
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.
Trait Implementations§
Source§impl Clone for PathFailure
impl Clone for PathFailure
Source§fn clone(&self) -> PathFailure
fn clone(&self) -> PathFailure
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 PathFailure
impl Debug for PathFailure
Source§impl MaybeReadable for PathFailure
impl MaybeReadable for PathFailure
Source§impl PartialEq for PathFailure
impl PartialEq for PathFailure
Source§impl Writeable for PathFailure
impl Writeable for PathFailure
impl Eq for PathFailure
impl StructuralPartialEq for PathFailure
Auto Trait Implementations§
impl Freeze for PathFailure
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