pub trait KeyExtractor:
Clone
+ Send
+ Sync
+ Debug
+ 'static {
type Key: Clone + Send + Sync + Debug + Hash + Eq + 'static;
// Required method
fn extract<T>(&self, req: &Request<T>) -> Result<Self::Key, CacheError>;
}Expand description
Trait to extract the caching key from the given HTTP request
Required Associated Types§
Required Methods§
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.