Enum lightning::chain::channelmonitor::MonitorEvent [−][src]
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)
Tuple Fields
0: HTLCUpdate
A monitor event containing an HTLCUpdate.
CommitmentTxConfirmed(OutPoint)
Tuple Fields
0: 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)
Tuple Fields
0: OutPoint
Indicates a ChannelMonitor
update has failed. See
ChannelMonitorUpdateErr::PermanentFailure
for more information on how this is used.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Writes self out to the given Writer
Writes self out to a Vec
Writes self out to a Vec
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
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
Mutably borrows from an owned value. Read more