pub enum StoreMode {
Local,
Memory,
Redis,
}Expand description
Which backend holds limiter state. Parsed from ratelimit.store.
Variants§
Local
In-process governor limiter (built in lib::build_runtime, not here). Per-replica.
Memory
In-process shared-store map. Single-replica / testing backend for the distributed path.
Redis
Redis-backed shared store: one global limit across replicas.
Implementations§
Trait Implementations§
impl Copy for StoreMode
impl Eq for StoreMode
impl StructuralPartialEq for StoreMode
Auto Trait Implementations§
impl Freeze for StoreMode
impl RefUnwindSafe for StoreMode
impl Send for StoreMode
impl Sync for StoreMode
impl Unpin for StoreMode
impl UnsafeUnpin for StoreMode
impl UnwindSafe for StoreMode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.