pub struct RedisRateLimitStore { /* private fields */ }Implementations§
Source§impl RedisRateLimitStore
impl RedisRateLimitStore
pub async fn connect(redis_url: &str) -> Result<Self, RustAuthError>
pub async fn connect_with_options( redis_url: &str, options: RedisRateLimitOptions, ) -> Result<Self, RustAuthError>
pub fn new(manager: ConnectionManager, options: RedisRateLimitOptions) -> Self
Trait Implementations§
Source§impl Clone for RedisRateLimitStore
impl Clone for RedisRateLimitStore
Source§fn clone(&self) -> RedisRateLimitStore
fn clone(&self) -> RedisRateLimitStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl RateLimitStore for RedisRateLimitStore
impl RateLimitStore for RedisRateLimitStore
fn consume<'a>(&'a self, input: RateLimitConsumeInput) -> RateLimitFuture<'a>
Auto Trait Implementations§
impl !RefUnwindSafe for RedisRateLimitStore
impl !UnwindSafe for RedisRateLimitStore
impl Freeze for RedisRateLimitStore
impl Send for RedisRateLimitStore
impl Sync for RedisRateLimitStore
impl Unpin for RedisRateLimitStore
impl UnsafeUnpin for RedisRateLimitStore
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