Skip to main content

RwLock

Type Alias RwLock 

Source
pub type RwLock<T> = RwLock<RawSyncRwLock, T>;

Aliased Type§

pub struct RwLock<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> RwLockLike for RwLock<T>

Source§

type ReadGuard<'a> = RwLockReadGuard<'a, RawSyncRwLock, T> where T: 'a

Source§

type WriteGuard<'a> = RwLockWriteGuard<'a, RawSyncRwLock, T> where T: 'a

Source§

type Context = ()

Source§

fn context() -> Self::Context

Source§

fn read(&self, _context: &mut Self::Context) -> Self::ReadGuard<'_>

Source§

fn write(&self, _context: &mut Self::Context) -> Self::WriteGuard<'_>

Source§

fn key(&self) -> *const ()
where Self: Sized,