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 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> MaybeReadable for T where
T: Readable,
impl<T> MaybeReadable for T where
T: Readable,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more