Trait concurrency_traits::rw_lock::TryUpgradeReadGuard [−][src]
pub trait TryUpgradeReadGuard<'a>: Sized + Deref<Target = Self::Item> { type Item: ?Sized; type WriteGuard: DerefMut<Target = Self::Item>; fn try_upgrade(self) -> Result<Self::WriteGuard, Self>; }
Expand description
A read guard that can be try to be upgraded to a write guard
Associated Types
type WriteGuard: DerefMut<Target = Self::Item>
[src]
type WriteGuard: DerefMut<Target = Self::Item>
[src]The write guard that this is upgraded to
Required methods
fn try_upgrade(self) -> Result<Self::WriteGuard, Self>
[src]
fn try_upgrade(self) -> Result<Self::WriteGuard, Self>
[src]Tries to upgrade this guard, returning Err
if cannot immediately
Implementors
impl<'a, T, R> TryUpgradeReadGuard<'a> for CustomReadGuard<'a, T, R> where
R: RawTryUpgradeRwLock,
[src]
impl<'a, T, R> TryUpgradeReadGuard<'a> for CustomReadGuard<'a, T, R> where
R: RawTryUpgradeRwLock,
[src]