Enum lightning::chain::channelmonitor::MonitorEvent
source · pub enum MonitorEvent {
HTLCEvent(HTLCUpdate),
CommitmentTxConfirmed(OutPoint),
Completed {
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.
Completed
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
ChannelMonitorUpdateStatus::InProgress
for more information on how this is used.
UpdateFailed(OutPoint)
Indicates a ChannelMonitor
update has failed. See
ChannelMonitorUpdateStatus::PermanentFailure
for more information on how this is used.
Trait Implementations§
source§impl Clone for MonitorEvent
impl Clone for MonitorEvent
source§fn clone(&self) -> MonitorEvent
fn clone(&self) -> MonitorEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl MaybeReadable for MonitorEvent
impl MaybeReadable for MonitorEvent
source§impl PartialEq<MonitorEvent> for MonitorEvent
impl PartialEq<MonitorEvent> for MonitorEvent
source§fn 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 ==
.