Enum kvarn::host::CacheAction
source · pub enum CacheAction {
Cache,
Drop,
}
Expand description
Per host filter output of whether or not to cache a response with some StatusCode
.
Variants§
Cache
Cache this status code response.
Drop
Don’t cache, in hope following responses have status codes which can be cached.
Implementations§
source§impl CacheAction
impl CacheAction
sourcepub fn from_cache(cache: bool) -> Self
pub fn from_cache(cache: bool) -> Self
Returns Self::Cache
if cache
is true. Else Self::Drop
.