pub trait CacheStore {
    // Required methods
    fn cache(&mut self, nid: NodeId, address: i64, length: i64, data: &[u8]);
    fn get_cache(&self, nid: NodeId, address: i64, length: i64) -> Option<&[u8]>;
    fn invalidate_by(&mut self, nid: NodeId);
    fn invalidate_of(&mut self, nid: NodeId);
    fn clear(&mut self);
}

Required Methods§

source

fn cache(&mut self, nid: NodeId, address: i64, length: i64, data: &[u8])

source

fn get_cache(&self, nid: NodeId, address: i64, length: i64) -> Option<&[u8]>

source

fn invalidate_by(&mut self, nid: NodeId)

source

fn invalidate_of(&mut self, nid: NodeId)

source

fn clear(&mut self)

Implementations on Foreign Types§

source§

impl<T> CacheStore for Box<T, Global>where T: CacheStore + ?Sized,

source§

fn cache(&mut self, nid: NodeId, address: i64, length: i64, data: &[u8])

source§

fn get_cache(&self, nid: NodeId, address: i64, length: i64) -> Option<&[u8]>

source§

fn invalidate_by(&mut self, nid: NodeId)

source§

fn invalidate_of(&mut self, nid: NodeId)

source§

fn clear(&mut self)

source§

impl<'a, T> CacheStore for &'a mut Twhere T: 'a + CacheStore + ?Sized,

source§

fn cache(&mut self, nid: NodeId, address: i64, length: i64, data: &[u8])

source§

fn get_cache(&self, nid: NodeId, address: i64, length: i64) -> Option<&[u8]>

source§

fn invalidate_by(&mut self, nid: NodeId)

source§

fn invalidate_of(&mut self, nid: NodeId)

source§

fn clear(&mut self)

Implementors§