pub struct CommitmentUpdate {
pub update_add_htlcs: Vec<UpdateAddHTLC>,
pub update_fulfill_htlcs: Vec<UpdateFulfillHTLC>,
pub update_fail_htlcs: Vec<UpdateFailHTLC>,
pub update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>,
pub update_fee: Option<UpdateFee>,
pub commitment_signed: CommitmentSigned,
}
Expand description
Struct used to return values from revoke_and_ack messages, containing a bunch of commitment transaction updates if they were pending.
Fields
update_add_htlcs: Vec<UpdateAddHTLC>
update_add_htlc messages which should be sent
update_fulfill_htlcs: Vec<UpdateFulfillHTLC>
update_fulfill_htlc messages which should be sent
update_fail_htlcs: Vec<UpdateFailHTLC>
update_fail_htlc messages which should be sent
update_fail_malformed_htlcs: Vec<UpdateFailMalformedHTLC>
update_fail_malformed_htlc messages which should be sent
update_fee: Option<UpdateFee>
An update_fee message which should be sent
commitment_signed: CommitmentSigned
Finally, the commitment_signed message which should be sent
Trait Implementations
sourceimpl Clone for CommitmentUpdate
impl Clone for CommitmentUpdate
sourcefn clone(&self) -> CommitmentUpdate
fn clone(&self) -> CommitmentUpdate
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 CommitmentUpdate
impl Debug for CommitmentUpdate
sourceimpl PartialEq<CommitmentUpdate> for CommitmentUpdate
impl PartialEq<CommitmentUpdate> for CommitmentUpdate
sourcefn eq(&self, other: &CommitmentUpdate) -> bool
fn eq(&self, other: &CommitmentUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CommitmentUpdate) -> bool
fn ne(&self, other: &CommitmentUpdate) -> bool
This method tests for !=
.
impl StructuralPartialEq for CommitmentUpdate
Auto Trait Implementations
impl RefUnwindSafe for CommitmentUpdate
impl Send for CommitmentUpdate
impl Sync for CommitmentUpdate
impl Unpin for CommitmentUpdate
impl UnwindSafe for CommitmentUpdate
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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