pub trait ThrottleStore:
Send
+ Sync
+ 'static {
// Required method
fn increment<'a>(
&'a self,
key: &'a str,
window: Duration,
) -> Pin<Box<dyn Future<Output = Result<ThrottleStoreRecord, HttpException>> + Send + 'a>>;
}Expand description
Re-exported public API. Atomic storage used by the throttler.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".