pub struct Upgrade<'a, T: ?Sized> { /* private fields */ }Expand description
The future RwLockUpgradableReadGuard::upgrade returns. Dropping it
before it completes releases the upgradable read.
Trait Implementations§
Source§impl<'a, T: ?Sized> Future for Upgrade<'a, T>
impl<'a, T: ?Sized> Future for Upgrade<'a, T>
Source§type Output = RwLockWriteGuard<'a, T>
type Output = RwLockWriteGuard<'a, T>
The type of value produced on completion.
impl<T: ?Sized + Send + Sync> Send for Upgrade<'_, T>
impl<T: ?Sized + Send + Sync> Sync for Upgrade<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for Upgrade<'a, T>
impl<'a, T> !UnwindSafe for Upgrade<'a, T>
impl<'a, T> Freeze for Upgrade<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for Upgrade<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for Upgrade<'a, T>where
T: ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more