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§
Sourcefn for_http_response(self) -> Self
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.