pub struct GutexRead<'a, T> {
lock: GroupGuard<'a>,
active: *mut usize,
value: *const T,
}
Expand description
RAII structure used to release the shared read access of a lock when dropped.
Fields§
§lock: GroupGuard<'a>
§active: *mut usize
§value: *const T
Implementations§
Trait Implementations§
impl<T: Sync> Sync for GutexRead<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for GutexRead<'a, T>
impl<'a, T> !RefUnwindSafe for GutexRead<'a, T>
impl<'a, T> !Send for GutexRead<'a, T>
impl<'a, T> Unpin for GutexRead<'a, T>
impl<'a, T> !UnwindSafe for GutexRead<'a, T>
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