pub enum SharedReadGuard<'a, T: Debug> {
Multi(RwLockReadGuard<'a, T>),
}Expand description
A read-only guard for accessing data in a SharedContainer.
This type abstracts over the differences between RwLockReadGuard (used in multi-threaded environments)
and Ref (used in single-threaded environments like WebAssembly).
It implements Deref to allow transparent access to the underlying data.
Variants§
Multi(RwLockReadGuard<'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