Skip to main content

Module clock

Module clock 

Source

Structs§

ClockFloorRejected
A peer report raise_clock_floors refused because a value lies past the clock ceiling, as opposed to a store failure.
ClockFloors
What a peer’s handshake reports, each raising its own floor: the HLC basis (µs), last (the local_seq space, from the peer’s cursor on this log) and the incarnation floor (from the highest origin_seq of this store’s own records the peer holds).
ClockState
ClockUntrusted
A write that would mint a seq while the store’s WallClock returns None fails with this error inside its anyhow::Error.
SystemClock
Always trusted, so an embedder that never configures a clock is never held.

Constants§

HLC_CEILING_MICROS
The time at which a wall-clock incarnation would reach 2^31 - 2^24. No clock reading, peer basis or cursor above it is accepted, so incarnation << 32 | n always fits an i64, and the value stays below 2^53 for JSON.
INCARNATION_EPOCH_SECS
2026-01-01T00:00:00Z: incarnations count seconds from here.
NEW_LAYOUT_MIN
Every origin_seq minted with an incarnation is at least this, and every legacy one (a local_seq from before clock seqs) is below it.

Traits§

WallClock