Skip to main content

CacheKey

Trait CacheKey 

Source
pub trait CacheKey
where Self: 'static + Clone + Display + Eq + Hash + Send + CacheWeight + Sync,
{ // Required method fn for_request(method: &Method, uri: &Uri, headers: &HeaderMap) -> Self; }
Expand description

Cache key.

Required Methods§

Source

fn for_request(method: &Method, uri: &Uri, headers: &HeaderMap) -> Self

Create a cache key for a request.

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§