RateSignals
What a response told the budget, passed to Permit.complete: whether the server throttled the call, how long it asked the caller to wait (retryAfter), and its readings by RateWindow.name. Build one with RateSignals { throttled = true; retryAfter = 30.seconds; reading("minute", WindowReading(0)) }.
Stable Core. A signal that is not throttled never pauses the budget (its readings still raise local counts); a reading for a window the budget does not have is ignored. RateSignals.None changes nothing. Equality is on the three properties; toString() prints the window names only.
Types
Collects the properties of a RateSignals. Not thread-safe; use it only inside the factory's lambda.
Properties
Functions
Two RateSignals are equal when their throttled, retryAfter and readings are equal.
A diagnostic string for logs: throttled, retryAfter and the window names only, never a reading. Its format is not part of the API and may change.