mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-08-07 05:22:31 -04:00
feat(base): Add EventCacheStoreLockGuard::clear_dirty.
This commit is contained in:
1 parent
c5893f882c
commit
3d5b32494e
1 file changed
+10
@@ -110,6 +110,16 @@ pub struct EventCacheStoreLockGuard<'a> {
|
|||||||
store: &'a DynEventCacheStore,
|
store: &'a DynEventCacheStore,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<'a> EventCacheStoreLockGuard<'a> {
|
||||||
|
/// Forward to [`CrossProcessLockGuard::clear_dirty`].
|
||||||
|
///
|
||||||
|
/// This is an associated method to avoid colliding with the [`Deref`]
|
||||||
|
/// implementation.
|
||||||
|
pub fn clear_dirty(this: &Self) {
|
||||||
|
this.cross_process_lock_guard.clear_dirty();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(not(tarpaulin_include))]
|
#[cfg(not(tarpaulin_include))]
|
||||||
impl fmt::Debug for EventCacheStoreLockGuard<'_> {
|
impl fmt::Debug for EventCacheStoreLockGuard<'_> {
|
||||||
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
|
|||||||
Reference in new issue
Block a user