Struct ConcurrencyLimitLayer
pub struct ConcurrencyLimitLayer { /* private fields */ }
Enforces a limit on the concurrent number of requests the underlying service can handle.
Implementations
impl ConcurrencyLimitLayer
const fn new(max: usize) -> SelfCreate a new concurrency limit layer.
Trait Implementations
impl Clone for ConcurrencyLimitLayer
fn clone(&self) -> Self
impl Debug for ConcurrencyLimitLayer
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<S> Layer<S> for ConcurrencyLimitLayer
type Service = ConcurrencyLimit<S>;fn layer(&self, service: S) -> Self::Service