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§
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)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".