Skip to main content

Module clock

Module clock 

Source
Expand description

Injectable clock abstraction for session expiry.

Production code uses SystemClock, a zero-cost wrapper around Utc::now. Tests can inject a fake clock to deterministically exercise expiry boundaries instead of rewinding PendingGeneration::expires_at after construction.

Structs§

SystemClock
Real-time Clock backed by Utc::now.

Traits§

Clock
Provides the current time for session expiry calculations.