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