Trait RequiresState
Source pub trait RequiresState<S: StateRegistry> { }
Expand description
Trait for types that require specific state to be registered.
This is implemented by extractors like State<T> to declare their
state dependencies at the type level.
§Example
ⓘimpl<S: HasState<DbPool>> RequiresState<S> for State<DbPool> {}