pub struct HttpConcurrencyLimitLayer { /* private fields */ }Implementations§
Source§impl HttpConcurrencyLimitLayer
impl HttpConcurrencyLimitLayer
pub fn new(max_ongoing_http_requests: usize) -> Result<Self>
pub fn wrap(&self, inner: HttpTransporter) -> HttpTransporter
Trait Implementations§
Source§impl Clone for HttpConcurrencyLimitLayer
impl Clone for HttpConcurrencyLimitLayer
Source§impl Debug for HttpConcurrencyLimitLayer
impl Debug for HttpConcurrencyLimitLayer
Source§impl Layer for HttpConcurrencyLimitLayer
impl Layer for HttpConcurrencyLimitLayer
Source§fn apply_context(
&self,
_service: Servicer,
inner: OperationContext,
) -> OperationContext
fn apply_context( &self, _service: Servicer, inner: OperationContext, ) -> OperationContext
Intercept the operation context (HTTP transport and executor). Read more
Source§fn apply_service(&self, srv: Arc<dyn ServiceDyn>) -> Arc<dyn ServiceDyn> ⓘ
fn apply_service(&self, srv: Arc<dyn ServiceDyn>) -> Arc<dyn ServiceDyn> ⓘ
Intercept the operation service stack. Read more
Auto Trait Implementations§
impl Forget for HttpConcurrencyLimitLayer
impl Freeze for HttpConcurrencyLimitLayerwhere
*const ArcInner<Semaphore> is !null: Freeze,
PhantomData<ArcInner<Semaphore>>: Freeze,
*const ArcInner<Inner> is !null: Freeze,
PhantomData<ArcInner<Inner>>: Freeze,
impl Move for HttpConcurrencyLimitLayer
impl RefUnwindSafe for HttpConcurrencyLimitLayerwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Waitlist>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
RwLock<TransferStats>: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
impl Send for HttpConcurrencyLimitLayer
impl Sync for HttpConcurrencyLimitLayer
impl Unpin for HttpConcurrencyLimitLayer
impl UnsafeUnpin for HttpConcurrencyLimitLayerwhere
*const ArcInner<Semaphore> is !null: UnsafeUnpin,
PhantomData<ArcInner<Semaphore>>: UnsafeUnpin,
*const ArcInner<Inner> is !null: UnsafeUnpin,
PhantomData<ArcInner<Inner>>: UnsafeUnpin,
impl UnwindSafe for HttpConcurrencyLimitLayer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more