[][src]Module ratelimit_meter::instant

Traits

Absolute

A point in time as given by a source of time. It is assumed to be monotonically moving forward.

Relative

A point in time that is used as a reference for measuring a rate limit. On the clock, it has meaning only relative to some other point in time.

Type Definitions

TimeSource

The default time representation in use by rate limiters. To override it, pass a different P type argument to the algorithm and rate limiter bucket.