Struct ClaimedHTLC
pub struct ClaimedHTLC {
pub channel_id: ChannelId,
pub user_channel_id: u128,
pub cltv_expiry: u32,
pub value_msat: u64,
pub counterparty_skimmed_fee_msat: u64,
}Expand description
Information about an HTLC that is part of a payment that can be claimed.
Fields§
§channel_id: ChannelIdThe channel_id of the channel over which the HTLC was received.
user_channel_id: u128The 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: u32The block height at which this HTLC expires.
value_msat: u64The amount (in msats) of this part of an MPP.
counterparty_skimmed_fee_msat: u64The extra fee our counterparty skimmed off the top of this HTLC, if any.
This value will always be 0 for ClaimedHTLCs serialized with LDK versions prior to
0.0.119.
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<T> AnySync for T
impl<T> AnySync for T
§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,
§impl<T> Downcast for Twhere
T: AsAny + ?Sized,
impl<T> Downcast for Twhere
T: AsAny + ?Sized,
§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
Any.§fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Any.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<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
§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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