pub struct StateFuture<S, C> { /* private fields */ }Expand description
A future that completes when the state matches the given predicate.
This is returned by State::wait_for.
§Notes
Unlike most futures, this future can be polled multiple times, even after it has completed.
Implementations§
Trait Implementations§
Source§impl<S, C> Drop for StateFuture<S, C>
impl<S, C> Drop for StateFuture<S, C>
Source§impl<S, C> Future for StateFuture<S, C>
impl<S, C> Future for StateFuture<S, C>
impl<S, C> Send for StateFuture<S, C>
impl<S, C> Sync for StateFuture<S, C>
Auto Trait Implementations§
impl<S, C> !Freeze for StateFuture<S, C>
impl<S, C> !RefUnwindSafe for StateFuture<S, C>
impl<S, C> !Unpin for StateFuture<S, C>
impl<S, C> !UnwindSafe for StateFuture<S, C>
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