Open
Description
CachePolicy::is_storable()
is pretty easy to overlook for upholding a MUST NOT guarantee. Maybe it would be a better idea to force it into an explicit action by making constructing a CachePolicy
fallible that way consumers who are only interested in storable policies can just ignore the Err
case. Something like
pub struct NotStorable(pub CachePolicy);
impl CachePolicy {
pub fn new(...) -> Result<Self, NotStorable> { ... }
pub fn new_options(...) -> Result<Self, NotStorable> { ... }
Metadata
Metadata
Assignees
Labels
No labels