pub struct YieldFuture(/* private fields */);
Expand description
A future which returns Pending once, and returns Ready the next time it is polled. Used to interrupt a running task to make space for others to run.
Trait Implementations§
Source§impl Future for YieldFuture
impl Future for YieldFuture
Auto Trait Implementations§
impl Freeze for YieldFuture
impl RefUnwindSafe for YieldFuture
impl Send for YieldFuture
impl Sync for YieldFuture
impl Unpin for YieldFuture
impl UnwindSafe for YieldFuture
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