[−][src]Module ratelimit_meter::clock
Time sources for the rate limiter.
The time sources contained in this module allow the rate limiter to be (optionally) independent of std, and should additionally allow mocking the passage of time.
Structs
FakeAbsoluteClock | A mock implementation of a clock tracking |
FakeRelativeClock | A mock implementation of a clock. All it does is keep track of what "now" is (relative to some point meaningful to the program), and returns that. |
MonotonicClock | The monotonic clock implemented by |
SystemClock | The non-monotonic clock implemented by |
Traits
Clock | A time source used by rate limiters. |
Reference | A measurement from a clock. |
Type Definitions
DefaultClock | The default clock that reports |