pub struct PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,{ /* private fields */ }Expand description
A guard encompassing the lifespan of a mutable reference to a persisted value. The purpose of this is to save the value immediately after it is mutated.
Trait Implementations§
Source§impl<'a, S, K> Debug for PersistedRefMut<'a, S, K>
impl<'a, S, K> Debug for PersistedRefMut<'a, S, K>
Source§impl<'a, S, K> Deref for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
impl<'a, S, K> Deref for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
Source§impl<'a, S, K> DerefMut for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
impl<'a, S, K> DerefMut for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
Source§impl<'a, S, K> Drop for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
Save value after modification. This assumes the user modified the value
while they had this mutable reference.
impl<'a, S, K> Drop for PersistedRefMut<'a, S, K>where
S: PersistedStore<K>,
K: PersistedKey,
Save value after modification. This assumes the user modified the value while they had this mutable reference.
Auto Trait Implementations§
impl<'a, S, K> Freeze for PersistedRefMut<'a, S, K>
impl<'a, S, K> RefUnwindSafe for PersistedRefMut<'a, S, K>
impl<'a, S, K> Send for PersistedRefMut<'a, S, K>
impl<'a, S, K> Sync for PersistedRefMut<'a, S, K>
impl<'a, S, K> Unpin for PersistedRefMut<'a, S, K>where
S: Unpin,
impl<'a, S, K> !UnwindSafe for PersistedRefMut<'a, S, K>
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