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
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 ChannelMonitorUpdate
impl Send for ChannelMonitorUpdate
impl Sync for ChannelMonitorUpdate
impl Unpin for ChannelMonitorUpdate
impl UnwindSafe for ChannelMonitorUpdate
Blanket Implementations
Mutably borrows from an owned value. Read more