Struct breez_sdk_core::lightning::ln::chan_utils::HTLCOutputInCommitment
pub struct HTLCOutputInCommitment {
pub offered: bool,
pub amount_msat: u64,
pub cltv_expiry: u32,
pub payment_hash: PaymentHash,
pub transaction_output_index: Option<u32>,
}
Expand description
Information about an HTLC as it appears in a commitment transaction
Fields§
§offered: bool
Whether the HTLC was “offered” (ie outbound in relation to this commitment transaction). Note that this is not the same as whether it is ountbound from us. To determine that you need to compare this value to whether the commitment transaction in question is that of the counterparty or our own.
amount_msat: u64
The value, in msat, of the HTLC. The value as it appears in the commitment transaction is this divided by 1000.
cltv_expiry: u32
The CLTV lock-time at which this HTLC expires.
payment_hash: PaymentHash
The hash of the preimage which unlocks this HTLC.
transaction_output_index: Option<u32>
The position within the commitment transactions’ outputs. This may be None if the value is below the dust limit (in which case no output appears in the commitment transaction and the value is spent to additional transaction fees).
Trait Implementations§
§impl Clone for HTLCOutputInCommitment
impl Clone for HTLCOutputInCommitment
§fn clone(&self) -> HTLCOutputInCommitment
fn clone(&self) -> HTLCOutputInCommitment
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for HTLCOutputInCommitment
impl Debug for HTLCOutputInCommitment
§impl PartialEq for HTLCOutputInCommitment
impl PartialEq for HTLCOutputInCommitment
§impl Readable for HTLCOutputInCommitment
impl Readable for HTLCOutputInCommitment
§fn read<R>(reader: &mut R) -> Result<HTLCOutputInCommitment, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<HTLCOutputInCommitment, DecodeError>where
R: Read,
Self
in from the given Read
.§impl Writeable for HTLCOutputInCommitment
impl Writeable for HTLCOutputInCommitment
impl Eq for HTLCOutputInCommitment
impl StructuralPartialEq for HTLCOutputInCommitment
Auto Trait Implementations§
impl Freeze for HTLCOutputInCommitment
impl RefUnwindSafe for HTLCOutputInCommitment
impl Send for HTLCOutputInCommitment
impl Sync for HTLCOutputInCommitment
impl Unpin for HTLCOutputInCommitment
impl UnwindSafe for HTLCOutputInCommitment
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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<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