pub enum SharedWriteGuard<'a, T: Debug> {
Multi(RwLockWriteGuard<'a, T>),
}Expand description
A writable guard for accessing and modifying data in a SharedContainer.
This type abstracts over the differences between RwLockWriteGuard (used in multi-threaded environments)
and RefMut (used in single-threaded environments like WebAssembly).
It implements both Deref and DerefMut to allow transparent access to the underlying data.
Variants§
Multi(RwLockWriteGuard<'a, T>)
Trait Implementations§
Auto Trait Implementations§
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