pub struct RouteParameters {
pub payment_params: PaymentParameters,
pub final_value_msat: u64,
pub final_cltv_expiry_delta: u32,
}
Expand description
Parameters needed to find a Route
.
Passed to find_route
and build_route_from_hops
, but also provided in
Event::PaymentPathFailed
for retrying a failed payment path.
Fields
payment_params: PaymentParameters
The parameters of the failed payment path.
final_value_msat: u64
The amount in msats sent on the failed payment path.
final_cltv_expiry_delta: u32
The CLTV on the final hop of the failed payment path.
Trait Implementations
sourceimpl Clone for RouteParameters
impl Clone for RouteParameters
sourcefn clone(&self) -> RouteParameters
fn clone(&self) -> RouteParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RouteParameters
impl Debug for RouteParameters
sourceimpl Readable for RouteParameters
impl Readable for RouteParameters
sourceimpl Writeable for RouteParameters
impl Writeable for RouteParameters
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
Auto Trait Implementations
impl RefUnwindSafe for RouteParameters
impl Send for RouteParameters
impl Sync for RouteParameters
impl Unpin for RouteParameters
impl UnwindSafe for RouteParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more