Skip to main content

CreateClock

Type Alias CreateClock 

Source
pub type CreateClock = fn() -> String;
Expand description

The boundary clock read: a function yielding the RFC3339-UTC wire timestamp. Injected so unit tests pin a fixed instant; production passes wall_clock.

Distinct from engenho_substrate::relogio::Clock (a monotonic / causal Instant/unix_secs clock used for lease/HLC ordering): this is purpose-built for the metadata.creationTimestamp RFC3339 WIRE string, mirroring the apiserver boundary’s chrono-rendered stamp.