Struct surf_middleware_cache::managers::CACacheManager [−][src]
pub struct CACacheManager {
pub path: String,
}Expand description
Implements CacheManager with cacache as the backend.
Fields
path: StringDirectory where the cache will be stored.
Implementations
Trait Implementations
Attempts to pull a cached reponse and related policy from cache.
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 Request,
res: &'life2 mut Response,
policy: CachePolicy
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
req: &'life1 Request,
res: &'life2 mut Response,
policy: CachePolicy
) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Attempts to cache a response and related policy.
Auto Trait Implementations
impl RefUnwindSafe for CACacheManager
impl Send for CACacheManager
impl Sync for CACacheManager
impl Unpin for CACacheManager
impl UnwindSafe for CACacheManager
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