pub struct FundingLocked {
pub txid: Txid,
pub retransmit_flags: u8,
}Expand description
Information exchanged during channel reestablishment about the last funding locked.
Fields§
§txid: TxidThe last txid sent by the sending node, which may be either from the last splice_locked or
for the initial funding transaction if it sent channel_ready.
retransmit_flags: u8A bitfield indicating which messages should be retransmitted by the receiving node.
See FundingLockedFlags for details.
Implementations§
Source§impl FundingLocked
impl FundingLocked
Sourcepub fn retransmit(&mut self, flag: FundingLockedFlags)
pub fn retransmit(&mut self, flag: FundingLockedFlags)
Sets the bit in retransmit_flags for retransmitting the message corresponding to flag.
Sourcepub fn should_retransmit(&self, flag: FundingLockedFlags) -> bool
pub fn should_retransmit(&self, flag: FundingLockedFlags) -> bool
Returns whether the message corresponding to flag should be retransmitted.
Trait Implementations§
Source§impl Clone for FundingLocked
impl Clone for FundingLocked
Source§fn clone(&self) -> FundingLocked
fn clone(&self) -> FundingLocked
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 FundingLocked
impl Debug for FundingLocked
Source§impl Hash for FundingLocked
impl Hash for FundingLocked
Source§impl PartialEq for FundingLocked
impl PartialEq for FundingLocked
Source§impl Readable for FundingLocked
impl Readable for FundingLocked
Source§impl Writeable for FundingLocked
impl Writeable for FundingLocked
impl Eq for FundingLocked
impl StructuralPartialEq for FundingLocked
Auto Trait Implementations§
impl Freeze for FundingLocked
impl RefUnwindSafe for FundingLocked
impl Send for FundingLocked
impl Sync for FundingLocked
impl Unpin for FundingLocked
impl UnwindSafe for FundingLocked
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> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> LengthReadable for Twhere
T: Readable,
impl<T> LengthReadable for Twhere
T: Readable,
Source§fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
fn read_from_fixed_length_buffer<R>(reader: &mut R) -> Result<T, DecodeError>where
R: LengthLimitedRead,
Reads a
Self in from the given LengthLimitedRead.