pub struct CommitmentSigned {
pub channel_id: [u8; 32],
pub signature: Signature,
pub htlc_signatures: Vec<Signature>,
}
Expand description
A commitment_signed message to be sent or received from a peer
Fields
channel_id: [u8; 32]
The channel ID
signature: Signature
A signature on the commitment transaction
htlc_signatures: Vec<Signature>
Signatures on the HTLC transactions
Trait Implementations
sourceimpl Clone for CommitmentSigned
impl Clone for CommitmentSigned
sourcefn clone(&self) -> CommitmentSigned
fn clone(&self) -> CommitmentSigned
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 CommitmentSigned
impl Debug for CommitmentSigned
sourceimpl PartialEq<CommitmentSigned> for CommitmentSigned
impl PartialEq<CommitmentSigned> for CommitmentSigned
sourcefn eq(&self, other: &CommitmentSigned) -> bool
fn eq(&self, other: &CommitmentSigned) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Readable for CommitmentSigned
impl Readable for CommitmentSigned
sourceimpl Writeable for CommitmentSigned
impl Writeable for CommitmentSigned
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 CommitmentSigned
Auto Trait Implementations
impl RefUnwindSafe for CommitmentSigned
impl Send for CommitmentSigned
impl Sync for CommitmentSigned
impl Unpin for CommitmentSigned
impl UnwindSafe for CommitmentSigned
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