pub struct RpsLimiter { /* private fields */ }Expand description
Shared request-rate limiter used to cap aggregate throughput across all VUs.
Wraps a governor token-bucket so VUs can .acquire().await one permit per
request. Permits refill smoothly at the configured rate, so callers see a
steady drip rather than a once-per-second burst.
The limiter is intended to be shared across many VUs behind an Arc and is
Send + Sync.
Implementations§
Auto Trait Implementations§
impl !Freeze for RpsLimiter
impl RefUnwindSafe for RpsLimiter
impl Send for RpsLimiter
impl Sync for RpsLimiter
impl Unpin for RpsLimiter
impl UnsafeUnpin for RpsLimiter
impl UnwindSafe for RpsLimiter
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