pub struct PendingNotifySettleTlc {
pub payment_hash: Hash256,
pub tlc_id: u64,
pub hold_expire_at: Option<u64>,
}Expand description
A TLC that is pending notification for settlement.
Fields§
§payment_hash: Hash256§tlc_id: u64§hold_expire_at: Option<u64>The expire time if the TLC should be held.
Implementations§
Source§impl PendingNotifySettleTlc
impl PendingNotifySettleTlc
Sourcepub fn pending_notify_should_hold(&self) -> bool
pub fn pending_notify_should_hold(&self) -> bool
Check if a PendingNotifySettleTlc should be held.
Sourcepub fn pending_notify_hold_expiry_duration(
&self,
now_millis_since_unix_epoch: u64,
) -> Duration
pub fn pending_notify_hold_expiry_duration( &self, now_millis_since_unix_epoch: u64, ) -> Duration
Get the remaining hold expiry duration for a PendingNotifySettleTlc.
Trait Implementations§
Source§impl Clone for PendingNotifySettleTlc
impl Clone for PendingNotifySettleTlc
Source§fn clone(&self) -> PendingNotifySettleTlc
fn clone(&self) -> PendingNotifySettleTlc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PendingNotifySettleTlc
impl Debug for PendingNotifySettleTlc
Source§impl<'de> Deserialize<'de> for PendingNotifySettleTlc
impl<'de> Deserialize<'de> for PendingNotifySettleTlc
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PendingNotifySettleTlc
impl RefUnwindSafe for PendingNotifySettleTlc
impl Send for PendingNotifySettleTlc
impl Sync for PendingNotifySettleTlc
impl Unpin for PendingNotifySettleTlc
impl UnsafeUnpin for PendingNotifySettleTlc
impl UnwindSafe for PendingNotifySettleTlc
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