pub enum TimerRetirement {
Retired,
Superseded,
}Expand description
The outcome of a value-conditional
retire_timer call.
Both variants are success — the distinction exists so callers (the boot sweep’s counters in particular) can report what actually happened to the row instead of counting attempts as retirements.
Variants§
Retired
The key no longer holds the retired arming’s row: it was deleted by
this call, or was already gone (never scheduled, or retired earlier —
the idempotent shape). A distributed backend reports an absent key as
Retired too: its tombstone lands unconditionally on an empty key.
Superseded
A DIFFERENT arming now owns the key (same timer name, new
(fire_at, armed_seq) identity — possibly the SAME instant re-armed
under a newer TimerStarted). The replacement’s row was left
untouched — it is the re-armed timer’s only durable claim to a
recovery fire.
Trait Implementations§
Source§impl Clone for TimerRetirement
impl Clone for TimerRetirement
Source§fn clone(&self) -> TimerRetirement
fn clone(&self) -> TimerRetirement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more