Structs§
- Mock
Clock - Test clock — advanceable by the test.
- System
Clock - Production clock backed by the OS.
- TtlParse
Error - Error from
parse_duration.
Traits§
- Clock
- A pluggable time source.
Functions§
- format_
duration - Format a
Durationas a humantime string (e.g.5m,2h). - parse_
duration - Parse a humantime string into a
Duration.
Type Aliases§
- Timestamp
- Unix-epoch seconds. Newtype to avoid mixing with other integers.