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
sourceimpl Clone for ChannelUsage
impl Clone for ChannelUsage
sourcefn clone(&self) -> ChannelUsage
fn clone(&self) -> ChannelUsage
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 ChannelUsage
impl Debug for ChannelUsage
impl Copy 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
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