Struct ClaimedHTLC
pub struct ClaimedHTLC {
pub channel_id: ChannelId,
pub user_channel_id: u128,
pub cltv_expiry: u32,
pub value_msat: u64,
}
Expand description
Information about an HTLC that is part of a payment that can be claimed.
Fields§
§channel_id: ChannelId
The channel_id
of the channel over which the HTLC was received.
user_channel_id: u128
The user_channel_id
of the channel over which the HTLC was received. This is the value
passed in to ChannelManager::create_channel
for outbound channels, or to
ChannelManager::accept_inbound_channel
for inbound channels if
UserConfig::manually_accept_inbound_channels
config flag is set to true. Otherwise
user_channel_id
will be randomized for an inbound channel.
This field will be zero for a payment that was serialized prior to LDK version 0.0.117. (This should only happen in the case that a payment was claimable prior to LDK version 0.0.117, but was not actually claimed until after upgrading.)
cltv_expiry: u32
The block height at which this HTLC expires.
value_msat: u64
The amount (in msats) of this part of an MPP.
Trait Implementations§
§impl Clone for ClaimedHTLC
impl Clone for ClaimedHTLC
§fn clone(&self) -> ClaimedHTLC
fn clone(&self) -> ClaimedHTLC
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ClaimedHTLC
impl Debug for ClaimedHTLC
§impl From<&ClaimableHTLC> for ClaimedHTLC
impl From<&ClaimableHTLC> for ClaimedHTLC
§fn from(val: &ClaimableHTLC) -> ClaimedHTLC
fn from(val: &ClaimableHTLC) -> ClaimedHTLC
§impl PartialEq for ClaimedHTLC
impl PartialEq for ClaimedHTLC
§impl Readable for ClaimedHTLC
impl Readable for ClaimedHTLC
§fn read<R>(reader: &mut R) -> Result<ClaimedHTLC, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<ClaimedHTLC, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for ClaimedHTLC
impl Writeable for ClaimedHTLC
impl Eq for ClaimedHTLC
impl StructuralPartialEq for ClaimedHTLC
Auto Trait Implementations§
impl Freeze for ClaimedHTLC
impl RefUnwindSafe for ClaimedHTLC
impl Send for ClaimedHTLC
impl Sync for ClaimedHTLC
impl Unpin for ClaimedHTLC
impl UnwindSafe for ClaimedHTLC
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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