pub enum MonitorEvent {
HTLCEvent(HTLCUpdate),
HolderForceClosedWithInfo {
reason: ClosureReason,
outpoint: OutPoint,
channel_id: ChannelId,
},
HolderForceClosed(OutPoint),
Completed {
funding_txo: OutPoint,
channel_id: ChannelId,
monitor_update_id: u64,
},
}
Expand description
An event to be processed by the ChannelManager.
Variants§
HTLCEvent(HTLCUpdate)
A monitor event containing an HTLCUpdate.
HolderForceClosedWithInfo
Indicates we broadcasted the channel’s latest commitment transaction and thus closed the channel. Holds information about the channel and why it was closed.
Fields
reason: ClosureReason
The reason the channel was closed.
HolderForceClosed(OutPoint)
Indicates we broadcasted the channel’s latest commitment transaction and thus closed the channel.
Completed
Indicates a ChannelMonitor
update has completed. See
ChannelMonitorUpdateStatus::InProgress
for more information on how this is used.
Fields
funding_txo: OutPoint
The funding outpoint of the ChannelMonitor
that was updated
channel_id: ChannelId
The channel ID of the channel associated with the ChannelMonitor
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.
Trait Implementations§
Source§impl Clone for MonitorEvent
impl Clone for MonitorEvent
Source§fn clone(&self) -> MonitorEvent
fn clone(&self) -> MonitorEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more