struct ProgressingUntilStalled {
finished: Poll<()>,
waker: Option<Waker>,
}
Expand description
State used for an in-progress call to
progress_until_stalled
If present in Data
, an (async) call to progress_until_stalled
is in progress.
The future from progress_until_stalled
, ProgressUntilStalledFuture
is a normal-ish future.
It can be polled in the normal way.
When it is polled, it looks here, in finished
, to see if it’s Ready
.
The future is made ready, and woken (via waker
),
by bespoke code in the task executor loop.
When ProgressUntilStalledFuture
(maybe completes and) is dropped,
its Drop
impl is used to remove this from Data.progressing_until_stalled
.
Fields§
§finished: Poll<()>
Have we, in fact, stalled?
Made Ready
by special code in the executor loop
waker: Option<Waker>
Waker
Signalled by special code in the executor loop
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressingUntilStalled
impl RefUnwindSafe for ProgressingUntilStalled
impl Send for ProgressingUntilStalled
impl Sync for ProgressingUntilStalled
impl Unpin for ProgressingUntilStalled
impl UnwindSafe for ProgressingUntilStalled
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more