Enum EffectiveCapacity
pub enum EffectiveCapacity {
ExactLiquidity {
liquidity_msat: u64,
},
AdvertisedMaxHTLC {
amount_msat: u64,
},
Total {
capacity_msat: u64,
htlc_maximum_msat: u64,
},
Infinite,
HintMaxHTLC {
amount_msat: u64,
},
Unknown,
}
Expand description
The effective capacity of a channel for routing purposes.
While this may be smaller than the actual channel capacity, amounts greater than
Self::as_msat
should not be routed through the channel.
Variants§
ExactLiquidity
The available liquidity in the channel known from being a channel counterparty, and thus a direct hop.
Fields
AdvertisedMaxHTLC
The maximum HTLC amount in one direction as advertised on the gossip network.
Total
The total capacity of the channel as determined by the funding transaction.
Fields
Infinite
A capacity sufficient to route any payment, typically used for private channels provided by an invoice.
HintMaxHTLC
The maximum HTLC amount as provided by an invoice route hint.
Unknown
A capacity that is unknown possibly because either the chain state is unavailable to know
the total capacity or the htlc_maximum_msat
was not advertised on the gossip network.
Implementations§
§impl EffectiveCapacity
impl EffectiveCapacity
Trait Implementations§
§impl Clone for EffectiveCapacity
impl Clone for EffectiveCapacity
§fn clone(&self) -> EffectiveCapacity
fn clone(&self) -> EffectiveCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for EffectiveCapacity
impl Debug for EffectiveCapacity
§impl PartialEq for EffectiveCapacity
impl PartialEq for EffectiveCapacity
impl Copy for EffectiveCapacity
impl StructuralPartialEq for EffectiveCapacity
Auto Trait Implementations§
impl Freeze for EffectiveCapacity
impl RefUnwindSafe for EffectiveCapacity
impl Send for EffectiveCapacity
impl Sync for EffectiveCapacity
impl Unpin for EffectiveCapacity
impl UnwindSafe for EffectiveCapacity
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request