Struct surf_middleware_cache::Cache [−][src]
pub struct Cache<T: CacheManager> {
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
Asynchronously handle the request, and return a response.
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
Instruments this type with the provided Span, returning an
Instrumented wrapper. 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
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