pub struct RedisRateLimiterProvider { /* private fields */ }Expand description
A rate limiter backed by Redis.
Implementations§
Source§impl RedisRateLimiterProvider
impl RedisRateLimiterProvider
Sourcepub fn absolute(&self) -> &AbsoluteRedisRateLimiter
Available on crate features redis-tokio or redis-smol only.
pub fn absolute(&self) -> &AbsoluteRedisRateLimiter
redis-tokio or redis-smol only.Absolute Redis rate limiter implementation.
Sourcepub fn suppressed(&self) -> &SuppressedRedisRateLimiter
Available on crate features redis-tokio or redis-smol only.
pub fn suppressed(&self) -> &SuppressedRedisRateLimiter
redis-tokio or redis-smol only.Suppressed Redis rate limiter implementation.
Auto Trait Implementations§
impl Freeze for RedisRateLimiterProvider
impl !RefUnwindSafe for RedisRateLimiterProvider
impl Send for RedisRateLimiterProvider
impl Sync for RedisRateLimiterProvider
impl Unpin for RedisRateLimiterProvider
impl UnsafeUnpin for RedisRateLimiterProvider
impl !UnwindSafe for RedisRateLimiterProvider
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