Struct lightning::chain::channelmonitor::HTLCUpdate
source · [−]pub struct HTLCUpdate { /* private fields */ }
Expand description
Simple structure sent back by chain::Watch
when an HTLC from a forward channel is detected on
chain. Used to update the corresponding HTLC in the backward channel. Failing to pass the
preimage claim backward will lead to loss of funds.
Trait Implementations
sourceimpl Clone for HTLCUpdate
impl Clone for HTLCUpdate
sourcefn clone(&self) -> HTLCUpdate
fn clone(&self) -> HTLCUpdate
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 PartialEq<HTLCUpdate> for HTLCUpdate
impl PartialEq<HTLCUpdate> for HTLCUpdate
sourcefn eq(&self, other: &HTLCUpdate) -> bool
fn eq(&self, other: &HTLCUpdate) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HTLCUpdate) -> bool
fn ne(&self, other: &HTLCUpdate) -> bool
This method tests for !=
.
sourceimpl Readable for HTLCUpdate
impl Readable for HTLCUpdate
sourceimpl Writeable for HTLCUpdate
impl Writeable for HTLCUpdate
sourcefn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
fn write<W: Writer>(&self, writer: &mut W) -> Result<(), Error>
Writes self out to the given Writer
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 HTLCUpdate
Auto Trait Implementations
impl RefUnwindSafe for HTLCUpdate
impl Send for HTLCUpdate
impl Sync for HTLCUpdate
impl Unpin for HTLCUpdate
impl UnwindSafe for HTLCUpdate
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