Struct reqwest_middleware_cache::Cache [−][src]
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
Implementations
Trait Implementations
Invoked with a request before sending it. If you want to continue processing the request,
you should explicitly call next.run(req, extensions). Read more
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
pub fn vzip(self) -> V
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