pub struct LnClaimId(/* private fields */);Expand description
Newtype for LDK’s lightning::ln::channelmanager::PaymentId but used
specifically for inbound lightning payment idempotency.
It is the hash of the HTLC(s) paying for a specific payment hash. There can
be multiple LnClaimIds for a single payment hash if e.g. a payer
mistakenly pays the same invoice twice.
We get this value from LDK’s PaymentClaimable and PaymentClaimed
events.
Trait Implementations§
Source§impl ByteArray<32> for LnClaimId
impl ByteArray<32> for LnClaimId
fn from_array(array: [u8; 32]) -> LnClaimId
fn to_array(&self) -> [u8; 32]
fn as_array(&self) -> &[u8; 32]
fn as_slice(&self) -> &[u8] ⓘ
fn to_vec(&self) -> Vec<u8> ⓘ
fn try_from_slice(slice: &[u8]) -> Result<Self, TryFromSliceError>
fn try_from_vec(vec: Vec<u8>) -> Result<Self, TryFromSliceError>
fn from_hex(s: &str) -> Result<Self, DecodeError>
fn to_hex(&self) -> String
fn as_hex_display(&self) -> HexDisplay<'_>
fn fmt_as_hex(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Source§impl<'de> Deserialize<'de> for LnClaimId
impl<'de> Deserialize<'de> for LnClaimId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LnClaimId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LnClaimId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for LnClaimId
impl Ord for LnClaimId
Source§impl PartialOrd for LnClaimId
impl PartialOrd for LnClaimId
Source§impl Serialize for LnClaimId
impl Serialize for LnClaimId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for LnClaimId
impl Eq for LnClaimId
impl StructuralPartialEq for LnClaimId
Auto Trait Implementations§
impl Freeze for LnClaimId
impl RefUnwindSafe for LnClaimId
impl Send for LnClaimId
impl Sync for LnClaimId
impl Unpin for LnClaimId
impl UnsafeUnpin for LnClaimId
impl UnwindSafe for LnClaimId
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.