pub struct RateLimit<T> { /* private fields */ }
Expand description
Enforces a rate limit on the number of requests the underlying service can handle over a period of time.
Implementations§
Source§impl<T> RateLimit<T>
impl<T> RateLimit<T>
Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Consume self
, returning the inner service
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for RateLimit<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RateLimit<T>
impl<T> Send for RateLimit<T>where
T: Send,
impl<T> Sync for RateLimit<T>where
T: Sync,
impl<T> Unpin for RateLimit<T>where
T: Unpin,
impl<T> !UnwindSafe for RateLimit<T>
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