pub struct SharedReadGuard<'a, T: ?Sized>(/* private fields */);
Expand description
RAII structure used to release the shared read access of a lock when dropped.
Implementations§
Sourcepub fn from_inner(guard: RwLockReadGuard<'a, T>) -> Self
pub fn from_inner(guard: RwLockReadGuard<'a, T>) -> Self
Create a SharedReadGuard
from its internal representation,
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