pub enum Yield {
Flash(FlashYield),
Real {
yielded: bool,
},
}Expand description
Cooperative yield future (see yield_now). Mirrors the flash enum; the
Yield::Flash variant is never constructed off the sim path.
Variants§
Flash(FlashYield)
Engine-backed quiescence yield: surface parity only, never built here.
Real
Real cooperative yield: returns Pending once after re-arming the
waker, then Ready — the same hand-back-to-the-scheduler semantics as
tokio::task::yield_now.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Yield
impl RefUnwindSafe for Yield
impl Send for Yield
impl Sync for Yield
impl Unpin for Yield
impl UnsafeUnpin for Yield
impl UnwindSafe for Yield
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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