Struct matrix_sdk_crypto::store::StoreTransaction
source · pub struct StoreTransaction { /* private fields */ }
Expand description
A temporary transaction (that implies a write) to the underlying store.
Implementations§
source§impl StoreTransaction
impl StoreTransaction
sourcepub async fn account(&mut self) -> Result<&mut Account>
pub async fn account(&mut self) -> Result<&mut Account>
Gets a Account
for update.
Note: since it’s guaranteed that one can’t have both a
StoreTransaction
and a StoreCacheGuard
at runtime (since the
underlying StoreCache
is guarded by a RwLock
mutex), this ensures
that we can’t have two copies of an Account
alive at the same time.
Auto Trait Implementations§
impl !RefUnwindSafe for StoreTransaction
impl Send for StoreTransaction
impl Sync for StoreTransaction
impl Unpin for StoreTransaction
impl !UnwindSafe for StoreTransaction
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