Trait foyer_storage::ReinsertionPolicy
source · pub trait ReinsertionPolicy: Send + Sync + 'static {
type Key: StorageKey;
type Value: StorageValue;
// Required methods
fn init(&self, context: ReinsertionContext<Self::Key, Self::Value>);
fn judge(&self, key: &Arc<Self::Key>) -> bool;
}