Crate api_bindium

Crate api_bindium 

Source

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§

InsufficientCapacity
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.
RateLimiter
A rate limiter.
RatelimitedSink
A Sink combinator that only allows sending elements when the rate-limiter allows it.
RatelimitedStream
A Stream combinator which will limit the rate of items being received.

Type Aliases§

DefaultDirectRateLimiter
A rate limiter representing a single item of state in memory, running on the default clock.
DefaultKeyedRateLimiter
A rate limiter with one state per key, running on the default clock.