pub enum RateLimit {
Unlimited,
Rps(u64),
Custom(u64, Duration),
}
Expand description
A rate limit configuration.
Variants§
Unlimited
Unlimited rate.
Rps(u64)
Requests per second.
Custom(u64, Duration)
Requests per a custom period.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RateLimit
impl RefUnwindSafe for RateLimit
impl Send for RateLimit
impl Sync for RateLimit
impl Unpin for RateLimit
impl UnwindSafe for RateLimit
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