pub struct RateLimitMiddleware;
Expand description
Rate limiting middleware configuration
Implementations§
Source§impl RateLimitMiddleware
impl RateLimitMiddleware
pub fn per_second(requests_per_second: u32) -> MiddlewareConfig
pub fn with_burst(requests_per_second: u32, burst_size: u32) -> MiddlewareConfig
Auto Trait Implementations§
impl Freeze for RateLimitMiddleware
impl RefUnwindSafe for RateLimitMiddleware
impl Send for RateLimitMiddleware
impl Sync for RateLimitMiddleware
impl Unpin for RateLimitMiddleware
impl UnwindSafe for RateLimitMiddleware
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