Struct lightning::routing::scoring::ChannelUsage
source · pub struct ChannelUsage {
pub amount_msat: u64,
pub inflight_htlc_msat: u64,
pub effective_capacity: EffectiveCapacity,
}
Expand description
Proposed use of a channel passed as a parameter to Score::channel_penalty_msat
.
Fields§
§amount_msat: u64
The amount to send through the channel, denominated in millisatoshis.
inflight_htlc_msat: u64
Total amount, denominated in millisatoshis, already allocated to send through the channel as part of a multi-path payment.
effective_capacity: EffectiveCapacity
The effective capacity of the channel.
Trait Implementations§
source§impl Clone for ChannelUsage
impl Clone for ChannelUsage
source§fn clone(&self) -> ChannelUsage
fn clone(&self) -> ChannelUsage
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 Debug for ChannelUsage
impl Debug for ChannelUsage
source§impl PartialEq<ChannelUsage> for ChannelUsage
impl PartialEq<ChannelUsage> for ChannelUsage
source§fn eq(&self, other: &ChannelUsage) -> bool
fn eq(&self, other: &ChannelUsage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChannelUsage
impl StructuralPartialEq for ChannelUsage
Auto Trait Implementations§
impl RefUnwindSafe for ChannelUsage
impl Send for ChannelUsage
impl Sync for ChannelUsage
impl Unpin for ChannelUsage
impl UnwindSafe for ChannelUsage
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