Struct tower::limit::GlobalConcurrencyLimitLayer [−][src]
pub struct GlobalConcurrencyLimitLayer { /* fields omitted */ }
Expand description
Enforces a limit on the concurrent number of requests the underlying service can handle.
Unlike ConcurrencyLimitLayer
, which enforces a per-service concurrency
limit, this layer accepts a owned semaphore (Arc<Semaphore>
) which can be
shared across multiple services.
Cloning this layer will not create a new semaphore.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for GlobalConcurrencyLimitLayer
impl Send for GlobalConcurrencyLimitLayer
impl Sync for GlobalConcurrencyLimitLayer
impl Unpin for GlobalConcurrencyLimitLayer
impl !UnwindSafe for GlobalConcurrencyLimitLayer
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more