pub struct ChannelReestablish {
pub channel_id: [u8; 32],
pub next_local_commitment_number: u64,
pub next_remote_commitment_number: u64,
pub data_loss_protect: OptionalField<DataLossProtect>,
}
Expand description
A channel_reestablish message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID
next_local_commitment_number: u64
The next commitment number for the sender
next_remote_commitment_number: u64
The next commitment number for the recipient
data_loss_protect: OptionalField<DataLossProtect>
Optionally, a field proving that next_remote_commitment_number-1 has been revoked
Trait Implementations
sourceimpl Clone for ChannelReestablish
impl Clone for ChannelReestablish
sourcefn clone(&self) -> ChannelReestablish
fn clone(&self) -> ChannelReestablish
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChannelReestablish
impl Debug for ChannelReestablish
sourceimpl PartialEq<ChannelReestablish> for ChannelReestablish
impl PartialEq<ChannelReestablish> for ChannelReestablish
sourcefn eq(&self, other: &ChannelReestablish) -> bool
fn eq(&self, other: &ChannelReestablish) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Readable for ChannelReestablish
impl Readable for ChannelReestablish
sourceimpl Writeable for ChannelReestablish
impl Writeable for ChannelReestablish
sourcefn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn encode(&self) -> Vec<u8>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Writes self out to a Vec
sourcefn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length. Read more
impl StructuralPartialEq for ChannelReestablish
Auto Trait Implementations
impl RefUnwindSafe for ChannelReestablish
impl Send for ChannelReestablish
impl Sync for ChannelReestablish
impl Unpin for ChannelReestablish
impl UnwindSafe for ChannelReestablish
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more