pub struct Ref<'lifetime, T> { /* private fields */ }Expand description
Read guard returned by borrow / borrow_and_update. Holds the
shared lock for the lifetime of the borrow.
Trait Implementations§
Auto Trait Implementations§
impl<'lifetime, T> !Send for Ref<'lifetime, T>
impl<'lifetime, T> Freeze for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: Freeze,
impl<'lifetime, T> RefUnwindSafe for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: RefUnwindSafe,
impl<'lifetime, T> Sync for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: Sync,
impl<'lifetime, T> Unpin for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: Unpin,
impl<'lifetime, T> UnsafeUnpin for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: UnsafeUnpin,
impl<'lifetime, T> UnwindSafe for Ref<'lifetime, T>where
RwLockReadGuard<'lifetime, T>: UnwindSafe,
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
Source§impl<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.