Struct http_cache::Cache
source ·
[−]pub struct Cache<T: CacheManager + Send + Sync + 'static> {
pub mode: CacheMode,
pub cache_manager: T,
}Expand description
Caches requests according to http spec
Fields
mode: CacheModeDetermines the manager behavior
cache_manager: TManager instance that implements the CacheManager trait
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Cache<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Cache<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
