Carl Lerche 41c54b208e
InFlightLimit middleware (#49)
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.
2018-02-20 11:04:03 -08:00
2018-02-19 09:43:45 -08:00
2017-11-16 09:44:44 -08:00
2017-11-16 09:44:44 -08:00
2017-11-16 09:44:44 -08:00
2016-08-26 16:26:03 -07:00
2018-01-16 12:32:40 -08:00
2018-02-20 11:04:03 -08:00
2017-11-16 09:44:44 -08:00
2018-01-17 12:57:48 -08:00

tower

fn(Request) -> Future

This is not ready for usage yet (unless you are brave).

Build Status

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
async fn(Request) -> Result
Readme MIT 7.5 MiB
Languages
Rust 100%