tower
tower copied to clipboard
async fn(Request) -> Result<Response, Error>
This changes the `Policy` trait in the `retry` layer to accept `&mut self` instead of `&self` and changes the output type of the returned future to `()`. The motivation for...
This issue scopes out the changes we are proposing to the retry middleware to improve its ergonomics. Currently, the retry middleware is quite hard to use and requires implementing a...
My bad. The [`Service`]: https://docs.rs/tower/trait.Service.html is a broken link. It should be https://docs.rs/tower/*/tower/trait.Service.html.
Following a discussion on [Discord](https://discord.com/channels/500028886025895936/627651185406509067/992057868289310761) I mentioned it was impossible to use `Timeout` with `RateLimit` because `RateLimit` is currently waiting in the `poll_ready` but the current `Timeout` implementation doesn't care...
In https://github.com/tower-rs/tower/pull/637 we changed `Either` to not change the error but instead require the two inner services have the same error type. This broke `option_layer` as demonstrated by: ```rust fn...
This is middleware that wraps a service with both pre and post functions. It offers two flavors, one which is purely for passing shared state from the pre function to...
We should add a complete set of examples of using the basic tower services. This should include using most of the layers and how to combine them with `ServiceBuilder`.
## Motivation Tower has been used in production for over three years. Since the `Service` trait is intended to provide a common abstraction and compatibility interface across libraries, the definition...
# Summary I don't think that `poll_ready()` provides enough value for it's extra complexity, and can be removed entirely. # Value of poll_ready As I understand it (from [Inventing the...
This PR just a proposal, hence being a draft, but I think its something we should at least consider for tower-service 1.0. The idea is to remove the blanket `Service`...