Struct lightning::routing::router::InFlightHtlcs
source · pub struct InFlightHtlcs(_);
Expand description
A data structure for tracking in-flight HTLCs. May be used during pathfinding to account for in-use channel liquidity.
Implementations§
source§impl InFlightHtlcs
impl InFlightHtlcs
sourcepub fn process_path(&mut self, path: &[RouteHop], payer_node_id: PublicKey)
pub fn process_path(&mut self, path: &[RouteHop], payer_node_id: PublicKey)
Takes in a path with payer’s node id and adds the path’s details to InFlightHtlcs
.
Trait Implementations§
source§impl Clone for InFlightHtlcs
impl Clone for InFlightHtlcs
source§fn clone(&self) -> InFlightHtlcs
fn clone(&self) -> InFlightHtlcs
Returns a copy 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 more