pub struct MemoryCache<T> { /* private fields */ }Expand description
An in-memory cache.
Implementations§
Trait Implementations§
Source§impl<T: Clone + Send + Sync> Cache<T> for MemoryCache<T>
impl<T: Clone + Send + Sync> Cache<T> for MemoryCache<T>
Auto Trait Implementations§
impl<T> !Freeze for MemoryCache<T>
impl<T> RefUnwindSafe for MemoryCache<T>
impl<T> Send for MemoryCache<T>where
T: Send,
impl<T> Sync for MemoryCache<T>
impl<T> Unpin for MemoryCache<T>
impl<T> UnwindSafe for MemoryCache<T>where
T: RefUnwindSafe,
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