Struct lightning::routing::router::InFlightHtlcs
source · pub struct InFlightHtlcs(/* private fields */);
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: &Path, payer_node_id: PublicKey)
pub fn process_path(&mut self, path: &Path, 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 moresource§impl Readable for InFlightHtlcs
impl Readable for InFlightHtlcs
source§impl Writeable for InFlightHtlcs
impl Writeable for InFlightHtlcs
Auto Trait Implementations§
impl Freeze for InFlightHtlcs
impl RefUnwindSafe for InFlightHtlcs
impl Send for InFlightHtlcs
impl Sync for InFlightHtlcs
impl Unpin for InFlightHtlcs
impl UnwindSafe for InFlightHtlcs
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