ServiceFn takes a closure and impls Service.#69
Conversation
`ServiceFn` services are always ready. It is expected that a middleware implements a rate limiting strategy.
|
I'm wondering if this is not a great API.... or at least there needs to be another one that takes |
|
What's the proposed Arc for? You mean for making a |
|
I'm wondering if Basically, |
|
I thought a lot about this for hyper's local In the upcoming Rust release, closures will derive |
|
@seanmonstar it also might not be obvious why an fn isn't clone, which might lead to confusing errors. |
|
I don't remember the conclusion of this :'( |
|
I think there should be a type that takes Any thoughts re: what that type should be? |
|
Gone stale. |
ServiceFnservices are always ready. It is expected that a middlewareimplements a rate limiting strategy.