Open lcmgh opened 2 months ago
ConcurrencyLimit <T> implements Clone here: https://docs.rs/tower/latest/src/tower/limit/concurrency/service.rs.html#96
ConcurrencyLimit <T>
Clone
RateLimit<T> does not https://docs.rs/tower/latest/src/tower/limit/rate/service.rs.html#14
RateLimit<T>
Consequence: I am adding service specific layers by wrapping them into a new Service that auto-implements NamedService but as add_service requires clone the layer must also support it.
NamedService
add_service
ConcurrencyLimit <T>
implementsClone
here: https://docs.rs/tower/latest/src/tower/limit/concurrency/service.rs.html#96RateLimit<T>
does not https://docs.rs/tower/latest/src/tower/limit/rate/service.rs.html#14Consequence: I am adding service specific layers by wrapping them into a new Service that auto-implements
NamedService
but asadd_service
requires clone the layer must also support it.