Type Definition governor::state::keyed::HashMapStateStore [−][src]
pub type HashMapStateStore<K> = Mutex<HashMap<K, InMemoryState>>;
Expand description
A thread-safe (but not very performant) implementation of a keyed rate limiter state
store using HashMap
.
The HashMapStateStore
is the default state store in std
when no other thread-safe
features are enabled.
Trait Implementations
Remove those keys with state older than drop_below
.
Shrinks the capacity of the state store, if possible. Read more