pub struct UpgradableReadArc<'a, T: ?Sized> {
_inner: FutureWrapper<UpgradableReadArcInner<'a, T>>,
}
Expand description
The future returned by RwLock::upgradable_read_arc
.
Fields§
§_inner: FutureWrapper<UpgradableReadArcInner<'a, T>>
Implementations§
Source§impl<'a, T: ?Sized> UpgradableReadArc<'a, T>
impl<'a, T: ?Sized> UpgradableReadArc<'a, T>
fn _new(inner: UpgradableReadArcInner<'a, T>) -> Self
pub(crate) fn wait(self) -> RwLockUpgradableReadGuardArc<T>
pub(crate) fn poll_with_strategy<'__strategy, __S: Strategy<'__strategy>>( self: Pin<&mut Self>, strategy: &mut __S, context: &mut __S::Context, ) -> Poll<RwLockUpgradableReadGuardArc<T>>
Source§impl<'x, T: ?Sized> UpgradableReadArc<'x, T>
impl<'x, T: ?Sized> UpgradableReadArc<'x, T>
pub(super) fn new(raw: RawUpgradableRead<'x>, lock: &'x Arc<RwLock<T>>) -> Self
Trait Implementations§
Source§impl<T: ?Sized> Debug for UpgradableReadArc<'_, T>
impl<T: ?Sized> Debug for UpgradableReadArc<'_, T>
Source§impl<'a, T: ?Sized> Future for UpgradableReadArc<'a, T>
impl<'a, T: ?Sized> Future for UpgradableReadArc<'a, T>
Source§type Output = RwLockUpgradableReadGuardArc<T>
type Output = RwLockUpgradableReadGuardArc<T>
The type of value produced on completion.
impl<'__pin, 'a, T: ?Sized> Unpin for UpgradableReadArc<'a, T>where
PinnedFieldsOf<__Origin<'__pin, 'a, T>>: Unpin,
Auto Trait Implementations§
impl<'a, T> Freeze for UpgradableReadArc<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for UpgradableReadArc<'a, T>
impl<'a, T> Send for UpgradableReadArc<'a, T>
impl<'a, T> Sync for UpgradableReadArc<'a, T>
impl<'a, T> !UnwindSafe for UpgradableReadArc<'a, T>
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