Trait concurrency_traits::rw_lock::RwLock [−][src]
pub trait RwLock<'a>: TryRwLock<'a> { fn read(&'a self) -> Self::ReadGuard; fn write(&'a self) -> Self::WriteGuard; }
Expand description
A generic blocking reader-writer lock trait
Implementation
It is recommended to implement RwLockSized
if the implement-ee can be
sized.
Required methods
fn write(&'a self) -> Self::WriteGuard
[src]
fn write(&'a self) -> Self::WriteGuard
[src]Writes to the lock, blocking until able.
Implementations on Foreign Types
Implementors
impl<'a, T, R> RwLock<'a> for CustomRwLock<T, R> where
T: 'a,
R: RawRwLock + 'a,
[src]
impl<'a, T, R> RwLock<'a> for CustomRwLock<T, R> where
T: 'a,
R: RawRwLock + 'a,
[src]