pub struct UpdatedAtStamper { /* private fields */ }Expand description
A cloneable handle that mints _updated_at register values from a shared
Hlc — the register-stamping capability, sliced off the whole
[crate::sync::sync_manager::SyncManager].
coven creates this handle during open and injects it into the write path
before any [crate::sync::sync_manager::SyncManager] exists. The manager,
built later, borrows the same Arc<Hlc>: coven advances that clock past every
pulled row, and because the stamper shares the instance, that advance reaches
every [crate::SqlContext::stamp] call, so a later local write never
sorts behind a pulled row and loses last-writer-wins. Every clone shares one
Arc<Hlc>, so coven’s seeding and advance-on-pull are reflected in every
stamp.
It exposes only UpdatedAtStamper::stamp — never seed/advance_past/
high_water. Those drive the clock and are coven’s alone; the host write
path is a pure consumer of stamps and must not poke clock state.
Implementations§
Trait Implementations§
Source§impl Clone for UpdatedAtStamper
impl Clone for UpdatedAtStamper
Source§fn clone(&self) -> UpdatedAtStamper
fn clone(&self) -> UpdatedAtStamper
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more