Struct antidote::RwLock
[−]
[src]
pub struct RwLock<T: ?Sized>(_);
Like std::sync::RwLock
except that it does not poison itself.
Methods
impl<T> RwLock<T>
fn new(t: T) -> RwLock<T>
Like std::sync::RwLock::new
.
fn into_inner(self) -> T where T: Sized
Like std::sync::RwLock::into_inner
.
impl<T: ?Sized> RwLock<T>
fn read<'a>(&'a self) -> RwLockReadGuard<'a, T>
Like std::sync::RwLock::read
.
fn try_read<'a>(&'a self) -> TryLockResult<RwLockReadGuard<'a, T>>
Like std::sync::RwLock::try_read
.
fn write<'a>(&'a self) -> RwLockWriteGuard<'a, T>
Like std::sync::RwLock::write
.
fn try_write<'a>(&'a self) -> TryLockResult<RwLockWriteGuard<'a, T>>
Like std::sync::RwLock::try_write
.
fn get_mut(&mut self) -> &mut T
Like std::sync::RwLock::get_mut
.