Skip to main content

CacheState

Trait CacheState 

Source
pub trait CacheState {
    // Required method
    fn cache(&self) -> Option<impl KeysInterface>;
}
Expand description

Simple trait which the axum::extract::State should implement for using the middleware for cache retrieval

Required Methods§

Source

fn cache(&self) -> Option<impl KeysInterface>

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§