pub trait IdempotencyStore: Send + Sync {
// Required methods
fn lookup(&self, key: &str) -> Option<SessionId>;
fn record(&self, key: &str, session_id: &SessionId);
}Expand description
Trait for idempotency key stores.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".