Enum lightning::chain::channelmonitor::MonitorEvent
source · [−]pub enum MonitorEvent {
HTLCEvent(HTLCUpdate),
CommitmentTxConfirmed(OutPoint),
UpdateCompleted {
funding_txo: OutPoint,
monitor_update_id: u64,
},
UpdateFailed(OutPoint),
}
Expand description
An event to be processed by the ChannelManager.
Variants
HTLCEvent(HTLCUpdate)
A monitor event containing an HTLCUpdate.
CommitmentTxConfirmed(OutPoint)
A monitor event that the Channel’s commitment transaction was confirmed.
UpdateCompleted
Fields
funding_txo: OutPoint
The funding outpoint of the ChannelMonitor
that was updated
monitor_update_id: u64
The Update ID from ChannelMonitorUpdate::update_id
which was applied or
ChannelMonitor::get_latest_update_id
.
Note that this should only be set to a given update’s ID if all previous updates for the
same ChannelMonitor
have been applied and persisted.
Indicates a ChannelMonitor
update has completed. See
ChannelMonitorUpdateErr::TemporaryFailure
for more information on how this is used.
UpdateFailed(OutPoint)
Indicates a ChannelMonitor
update has failed. See
ChannelMonitorUpdateErr::PermanentFailure
for more information on how this is used.
Trait Implementations
sourceimpl Clone for MonitorEvent
impl Clone for MonitorEvent
sourcefn clone(&self) -> MonitorEvent
fn clone(&self) -> MonitorEvent
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 MaybeReadable for MonitorEvent
impl MaybeReadable for MonitorEvent
sourceimpl PartialEq<MonitorEvent> for MonitorEvent
impl PartialEq<MonitorEvent> for MonitorEvent
sourcefn eq(&self, other: &MonitorEvent) -> bool
fn eq(&self, other: &MonitorEvent) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Writeable for MonitorEvent
impl Writeable for MonitorEvent
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 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 MonitorEvent
Auto Trait Implementations
impl RefUnwindSafe for MonitorEvent
impl Send for MonitorEvent
impl Sync for MonitorEvent
impl Unpin for MonitorEvent
impl UnwindSafe for MonitorEvent
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