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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Reads a Self in from the given Read

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Writes self out to the given Writer

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.