[][src]Trait memflow::mem::cache::CacheValidator

pub trait CacheValidator where
    Self: Send
{ fn allocate_slots(&mut self, slot_count: usize);
fn update_validity(&mut self);
fn is_slot_valid(&self, slot_id: usize) -> bool;
fn validate_slot(&mut self, slot_id: usize);
fn invalidate_slot(&mut self, slot_id: usize); }

Validators are used when working with caches and determine for how long a specific cache entry stays valid.

Required methods

fn allocate_slots(&mut self, slot_count: usize)

fn update_validity(&mut self)

fn is_slot_valid(&self, slot_id: usize) -> bool

fn validate_slot(&mut self, slot_id: usize)

fn invalidate_slot(&mut self, slot_id: usize)

Loading content...

Implementors

impl CacheValidator for CountCacheValidator[src]

impl CacheValidator for TimedCacheValidator[src]

Loading content...