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) -> Self

Create 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

Auto Trait Implementations

impl Freeze for ConcurrencyLimitLayer

impl RefUnwindSafe for ConcurrencyLimitLayer

impl Send for ConcurrencyLimitLayer

impl Sync for ConcurrencyLimitLayer

impl Unpin for ConcurrencyLimitLayer

impl UnsafeUnpin for ConcurrencyLimitLayer

impl UnwindSafe for ConcurrencyLimitLayer

Blanket Implementations

impl<T> Any for ConcurrencyLimitLayer where T: 'static + ?Sized,

impl<T> Borrow<T> for ConcurrencyLimitLayer where T: ?Sized,

impl<T> BorrowMut<T> for ConcurrencyLimitLayer where T: ?Sized,

impl<T> CloneToUninit for ConcurrencyLimitLayer where T: Clone,

impl<T> From<T> for ConcurrencyLimitLayer

impl<T> Instrument for ConcurrencyLimitLayer

impl<T> ToOwned for ConcurrencyLimitLayer where T: Clone,

impl<T> WithSubscriber for ConcurrencyLimitLayer

impl<T, U> Into<U> for ConcurrencyLimitLayer where U: From<T>,

impl<T, U> TryFrom<U> for ConcurrencyLimitLayer where U: Into<T>,

impl<T, U> TryInto<U> for ConcurrencyLimitLayer where U: TryFrom<T>,