pub struct AdaptiveLimiter { /* private fields */ }Expand description
Adaptive limiter that reacts to response outcomes.
Implementations§
Trait Implementations§
Source§impl RateLimiter for AdaptiveLimiter
impl RateLimiter for AdaptiveLimiter
Source§fn acquire<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn acquire<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Blocks until a request is allowed to proceed.
Auto Trait Implementations§
impl !Freeze for AdaptiveLimiter
impl !RefUnwindSafe for AdaptiveLimiter
impl Send for AdaptiveLimiter
impl Sync for AdaptiveLimiter
impl Unpin for AdaptiveLimiter
impl UnwindSafe for AdaptiveLimiter
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