Struct scrypto::prelude::radix_engine_common::prelude::rust::sync::RwLockReadGuard
1.0.0 · source · pub struct RwLockReadGuard<'a, T>where
T: 'a + ?Sized,{
data: NonNull<T>,
inner_lock: &'a RwLock,
}
Expand description
Fields§
§data: NonNull<T>
§inner_lock: &'a RwLock
Trait Implementations§
1.16.0 · source§impl<T> Debug for RwLockReadGuard<'_, T>
impl<T> Debug for RwLockReadGuard<'_, T>
source§impl<T> Deref for RwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> Deref for RwLockReadGuard<'_, T>where
T: ?Sized,
1.20.0 · source§impl<T> Display for RwLockReadGuard<'_, T>
impl<T> Display for RwLockReadGuard<'_, T>
source§impl<T> Drop for RwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> Drop for RwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> !Send for RwLockReadGuard<'_, T>where
T: ?Sized,
impl<T> Sync for RwLockReadGuard<'_, T>
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe,
impl<'a, T: ?Sized> Unpin for RwLockReadGuard<'a, T>
impl<'a, T: ?Sized> UnwindSafe for RwLockReadGuard<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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