Struct lightning::chain::channelmonitor::ChannelMonitorUpdate[][src]

pub struct ChannelMonitorUpdate {
    pub update_id: u64,
    // some fields omitted
}
Expand description

An update generated by the underlying Channel itself which contains some new information the ChannelMonitor should be made aware of.

Fields

update_id: u64

The sequence number of this update. Updates must be replayed in-order according to this sequence number (and updates may panic if they are not). The update_id values are strictly increasing and increase by one for each new update, with one exception specified below.

This sequence number is also used to track up to which points updates which returned ChannelMonitorUpdateErr::TemporaryFailure have been applied to all copies of a given ChannelMonitor when ChannelManager::channel_monitor_updated is called.

The only instance where update_id values are not strictly increasing is the case where we allow post-force-close updates with a special update ID of CLOSED_CHANNEL_UPDATE_ID. See its docs for more details.

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

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

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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.