Struct readlock::SharedReadGuard
source · 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