Module mas_storage::clock
source · Expand description
A Clock is a way to get the current date and time.
This module defines two implemetation of the Clock trait:
SystemClock which uses the system time, and a MockClock, which can
be used and freely manipulated in tests.
Structs§
- A fake clock, which uses a fixed timestamp, and can be advanced with the
MockClock::advancemethod. - A clock which uses the system time
Traits§
- Represents a clock which can give the current date and time