Struct lightning::ln::msgs::ChannelReestablish [−][src]
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Writes self out to a Vec
Writes self out to a Vec
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
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
Mutably borrows from an owned value. Read more