Trait ForHttpResponse

Source
pub trait ForHttpResponse: Sized {
    // Required method
    fn for_http_response(self) -> Self;
}
Available on crate feature moka only.
Expand description

Add support for CachedResponse weigher and Expiry.

Required Methods§

Source

fn for_http_response(self) -> Self

Add support for CachedResponse weigher and Expiry.

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.

Implementations on Foreign Types§

Source§

impl<CacheKeyT> ForHttpResponse for CacheBuilder<CacheKeyT, CachedResponseRef, Cache<CacheKeyT, CachedResponseRef>>
where CacheKeyT: CacheKey,

Source§

fn for_http_response(self) -> Self

Implementors§