Trait cache_loader_async::backing::CacheBacking[][src]

pub trait CacheBacking<K, V> where
    K: Eq + Hash + Sized + Clone + Send,
    V: Sized + Clone + Send
{ fn get_mut(&mut self, key: &K) -> Option<&mut V>;
fn get(&mut self, key: &K) -> Option<&V>;
fn set(&mut self, key: K, value: V) -> Option<V>;
fn remove(&mut self, key: &K) -> Option<V>;
fn contains_key(&self, key: &K) -> bool; }

Required methods

fn get_mut(&mut self, key: &K) -> Option<&mut V>[src]

fn get(&mut self, key: &K) -> Option<&V>[src]

fn set(&mut self, key: K, value: V) -> Option<V>[src]

fn remove(&mut self, key: &K) -> Option<V>[src]

fn contains_key(&self, key: &K) -> bool[src]

Loading content...

Implementors

impl<K: Eq + Hash + Sized + Clone + Send, V: Sized + Clone + Send> CacheBacking<K, V> for HashMapBacking<K, V>[src]

fn get_mut(&mut self, key: &K) -> Option<&mut V>[src]

fn get(&mut self, key: &K) -> Option<&V>[src]

fn set(&mut self, key: K, value: V) -> Option<V>[src]

fn remove(&mut self, key: &K) -> Option<V>[src]

fn contains_key(&self, key: &K) -> bool[src]

Loading content...