governor::state::direct

Trait DirectStateStore

Source
pub trait DirectStateStore: StateStore<Key = NotKeyed> { }
Expand description

A trait for state stores that only keep one rate limiting state.

This is blanket-implemented by all StateStores with NotKeyed key associated types.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> DirectStateStore for T
where T: StateStore<Key = NotKeyed>,