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>[src]
pub fn new(t: T) -> RwLock<T>[src]
Like std::sync::RwLock::new.
pub fn into_inner(self) -> T where
T: Sized, [src]
T: Sized,
Like std::sync::RwLock::into_inner.
impl<T: ?Sized> RwLock<T>[src]
pub fn read<'a>(&'a self) -> RwLockReadGuard<'a, T>[src]
Like std::sync::RwLock::read.
pub fn try_read<'a>(&'a self) -> TryLockResult<RwLockReadGuard<'a, T>>[src]
Like std::sync::RwLock::try_read.
pub fn write<'a>(&'a self) -> RwLockWriteGuard<'a, T>[src]
Like std::sync::RwLock::write.
pub fn try_write<'a>(&'a self) -> TryLockResult<RwLockWriteGuard<'a, T>>[src]
Like std::sync::RwLock::try_write.
ⓘImportant traits for &'a mut Rpub fn get_mut(&mut self) -> &mut T[src]
ⓘImportant traits for &'a mut R
Like std::sync::RwLock::get_mut.