Re-exports§
pub use crate::api_request::error::ApiRequestError;pub use crate::client::ApiClient;pub use crate::http_verb::HTTPVerb;pub use api_request::ApiRequest;pub use ureq;
Modules§
- _guide
- A more in-depth guide to
governor - api_
request - client
- clock
- Time sources for rate limiters.
- endpoints
- http_
verb - middleware
- Additional, customizable behavior for rate limiters.
- nanos
- A time-keeping abstraction (nanoseconds) that works for storing in an atomic integer.
- prelude
- The collection of asynchronous traits exported from this crate.
- state
- State stores for rate limiters
- utils
Structs§
- Insufficient
Capacity - Error indicating that the number of cells tested (the first argument) is larger than the bucket’s capacity.
- Jitter
- An interval specification for deviating from the nominal wait time.
- NotUntil
- A negative rate-limiting outcome.
- Quota
- A rate-limiting quota.
- Rate
Limiter - A rate limiter.
- Ratelimited
Sink - A
Sinkcombinator that only allows sending elements when the rate-limiter allows it. - Ratelimited
Stream - A
Streamcombinator which will limit the rate of items being received.
Type Aliases§
- Default
Direct Rate Limiter - A rate limiter representing a single item of state in memory, running on the default clock.
- Default
Keyed Rate Limiter - A rate limiter with one state per key, running on the default clock.