pub struct Path {
pub hops: Vec<RouteHop>,
pub blinded_tail: Option<BlindedTail>,
}
Expand description
A path in a Route
to the payment recipient. Must always be at least length one.
If no Path::blinded_tail
is present, then Path::hops
length may be up to 19.
Fields§
§hops: Vec<RouteHop>
The list of unblinded hops in this Path
. Must be at least length one.
blinded_tail: Option<BlindedTail>
The blinded path at which this path terminates, if we’re sending to one, and its metadata.
Implementations§
source§impl Path
impl Path
sourcepub fn fee_msat(&self) -> u64
pub fn fee_msat(&self) -> u64
Gets the fees for a given path, excluding any excess paid to the recipient.
sourcepub fn final_value_msat(&self) -> u64
pub fn final_value_msat(&self) -> u64
Gets the total amount paid on this Path
, excluding the fees.
sourcepub fn final_cltv_expiry_delta(&self) -> Option<u32>
pub fn final_cltv_expiry_delta(&self) -> Option<u32>
Gets the final hop’s CLTV expiry delta.
Trait Implementations§
source§impl PartialEq for Path
impl PartialEq for Path
impl Eq for Path
impl StructuralPartialEq for Path
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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