[][src]Type Definition governor::state::keyed::HashMapStateStore

type HashMapStateStore<K> = Mutex<HashMap<K, InMemoryState>>;

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

impl<K: Hash + Eq + Clone> ShrinkableKeyedStateStore<K> for HashMapStateStore<K>[src]

impl<K: Hash + Eq + Clone> StateStore for HashMapStateStore<K>[src]

type Key = K

The type of key that the state store can represent.