pub struct MemoryRateLimitStorage { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for MemoryRateLimitStorage
impl Debug for MemoryRateLimitStorage
Source§impl Default for MemoryRateLimitStorage
impl Default for MemoryRateLimitStorage
Source§fn default() -> MemoryRateLimitStorage
fn default() -> MemoryRateLimitStorage
Returns the “default value” for a type. Read more
Source§impl RateLimitStorage for MemoryRateLimitStorage
impl RateLimitStorage for MemoryRateLimitStorage
fn get(&self, key: &str) -> Result<Option<RateLimitRecord>, OpenAuthError>
fn set( &self, key: &str, value: RateLimitRecord, ttl_seconds: u64, _update: bool, ) -> Result<(), OpenAuthError>
Auto Trait Implementations§
impl !Freeze for MemoryRateLimitStorage
impl RefUnwindSafe for MemoryRateLimitStorage
impl Send for MemoryRateLimitStorage
impl Sync for MemoryRateLimitStorage
impl Unpin for MemoryRateLimitStorage
impl UnsafeUnpin for MemoryRateLimitStorage
impl UnwindSafe for MemoryRateLimitStorage
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