Struct antidote::RwLock [−][src]
Like std::sync::RwLock except that it does not poison itself.
Implementations
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.
pub fn get_mut(&mut self) -> &mut T[src]
Like std::sync::RwLock::get_mut.
Trait Implementations
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for RwLock<T>
impl<T: ?Sized> Send for RwLock<T> where
T: Send,
T: Send,
impl<T: ?Sized> Sync for RwLock<T> where
T: Send + Sync,
T: Send + Sync,
impl<T: ?Sized> Unpin for RwLock<T> where
T: Unpin,
T: Unpin,
impl<T: ?Sized> UnwindSafe for RwLock<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,