Struct breez_sdk_liquid::lightning::routing::router::Path
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§
§impl Path
impl Path
pub 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.
pub fn final_value_msat(&self) -> u64
pub fn final_value_msat(&self) -> u64
Gets the total amount paid on this Path
, excluding the fees.
pub 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§
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request