pub struct ConcurrentCache { /* private fields */ }Expand description
A concurrent cache tracker.
This has two parts to it:
- A normal cache tracker, protected by a lock.
- A queue of cache operations that will be executed when the lock is acquired.
Implementations§
Source§impl ConcurrentCache
impl ConcurrentCache
Sourcepub fn new() -> ConcurrentCache
pub fn new() -> ConcurrentCache
Create a new concurrent cache tracker.
Sourcepub fn lock(&self) -> MutexGuard<'_, Cache>
pub fn lock(&self) -> MutexGuard<'_, Cache>
Lock the inner cache.
Auto Trait Implementations§
impl !Freeze for ConcurrentCache
impl !RefUnwindSafe for ConcurrentCache
impl Send for ConcurrentCache
impl Sync for ConcurrentCache
impl Unpin for ConcurrentCache
impl !UnwindSafe for ConcurrentCache
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