mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-02 07:20:52 +00:00

Provides a middleware that sets a maximum number of requests that can be in-flight for the service. A request is defined to be in-flight from the time `call` is invoked to the time the returned response future resolves. This maximum is enforced across all clones of the service instance.
tower
fn(Request) -> Future
This is not ready for usage yet (unless you are brave).
More information about this crate can be found in the crate documentation
Usage
First, add this to your Cargo.toml
:
[dependencies]
tower = { git = "https://github.com/carllerche/tower" }
Next, add this to your crate:
extern crate tower;
Description
Languages
Rust
100%