pub struct RwLock<L: RawRwLock, T> { /* private fields */ }
Implementations§
Source§impl<L: RawRwLock, T> RwLock<L, T>
impl<L: RawRwLock, T> RwLock<L, T>
pub fn new_custom(l: L, t: T) -> RwLock<L, T>
pub fn read(&self) -> RwLockReadGuard<'_, L, T>
pub fn write(&self) -> RwLockWriteGuard<'_, L, T>
Trait Implementations§
impl<L: RawRwLock, T: Send + Sync> Send for RwLock<L, T>
impl<L: RawRwLock, T: Send + Sync> Sync for RwLock<L, T>
Auto Trait Implementations§
impl<L, T> !Freeze for RwLock<L, T>
impl<L, T> !RefUnwindSafe for RwLock<L, T>
impl<L, T> Unpin for RwLock<L, T>
impl<L, T> UnwindSafe for RwLock<L, T>where
L: UnwindSafe,
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