pub struct ManualWaiterFuture { /* private fields */ }Expand description
A future that completes when a manual clock has enough registered waiters.
This is a deterministic synchronization primitive for tests. Its observer is registered when the future is created, before its first poll. Dropping an incomplete future unregisters the observer from the clock.
Trait Implementations§
Source§impl Debug for ManualWaiterFuture
impl Debug for ManualWaiterFuture
Source§impl Drop for ManualWaiterFuture
impl Drop for ManualWaiterFuture
Source§impl Future for ManualWaiterFuture
impl Future for ManualWaiterFuture
Source§fn poll(self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll<Self::Output>
fn poll(self: Pin<&mut Self>, context: &mut Context<'_>) -> Poll<Self::Output>
Polls whether the requested waiter count has been reached.
§Parameters
context- Task context whose waker replaces any prior registration.
§Returns
Poll::Ready after the requested count is reached, otherwise
Poll::Pending.
§Panics
Panics if destroying a replaced custom task waker panics.
Auto Trait Implementations§
impl Freeze for ManualWaiterFuture
impl RefUnwindSafe for ManualWaiterFuture
impl Send for ManualWaiterFuture
impl Sync for ManualWaiterFuture
impl Unpin for ManualWaiterFuture
impl UnsafeUnpin for ManualWaiterFuture
impl UnwindSafe for ManualWaiterFuture
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