pub trait DefaultEntryOptionsProvider: Send + Sync {
// Required method
fn options_for(&self, key: &str) -> Option<EntryOptions>;
}Expand description
Supplies default EntryOptions dynamically, keyed by cache key.
Returning None falls back to the cache’s static default options.
Required Methods§
Sourcefn options_for(&self, key: &str) -> Option<EntryOptions>
fn options_for(&self, key: &str) -> Option<EntryOptions>
The options to use for key, or None to fall back to the static default.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".