pub struct Cache<'s, 'k, K, V>where
for<'a> &'a K: Debug + PartialEq + Eq + PrimaryKey<'a>,
K: Clone + Debug + PartialEq + Eq,
V: Clone + Serialize + DeserializeOwned,{ /* private fields */ }Expand description
A cache which stores values in memory to avoid repeated disk reads/writes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'s, 'k, K, V> Freeze for Cache<'s, 'k, K, V>
impl<'s, 'k, K, V> RefUnwindSafe for Cache<'s, 'k, K, V>
impl<'s, 'k, K, V> Send for Cache<'s, 'k, K, V>
impl<'s, 'k, K, V> Sync for Cache<'s, 'k, K, V>
impl<'s, 'k, K, V> Unpin for Cache<'s, 'k, K, V>
impl<'s, 'k, K, V> UnwindSafe for Cache<'s, 'k, K, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more