[go: up one dir, main page]

tower-limit 0.1.3

Limit maximum request rate to a `Service`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![doc(html_root_url = "https://docs.rs/tower-limit/0.1.3")]
#![cfg_attr(test, deny(warnings))]
#![deny(missing_debug_implementations, missing_docs, rust_2018_idioms)]
#![allow(elided_lifetimes_in_paths)]

//! Tower middleware for limiting requests.

pub mod concurrency;
pub mod rate;

pub use crate::{
    concurrency::{ConcurrencyLimit, ConcurrencyLimitLayer},
    rate::{RateLimit, RateLimitLayer},
};