Crate ratelimit_meter [] [src]

Reexports

pub use errors::*;

Modules

errors

Structs

Allower

The most naive implementation of a rate-limiter ever: Always allows every cell through.

GCRA

Implements the virtual scheduling description of the Generic Cell Rate Algorithm, attributed to ITU-T in recommendation I.371 Traffic control and congestion control in B-ISDN; from Wikipedia.

Limiter

A builder object that can be used to construct rate-limiters as meters.

Threadsafe

A wrapper that ensures operations in otherwise thread-unsafe rate-limiting decision algorithms are thread-safe. This is implemented by wrapping the actual Decider implementation in an atomically reference-counted mutex. It takes out a mutex whenever .test_and_update() is called.

Enums

Decision

A decision on a single cell from the metered rate-limiter.

Traits

Decider