pub enum CoroutineStep {
Yielded {
lane: CoroutineLane,
value: Ref,
},
Exhausted,
}Expand description
Outcome of resuming a Coroutine: a yielded value, or exhaustion.
Variants§
Yielded
A lane yielded a value and control returned to the driver.
Exhausted
Both lanes are drained; the coroutine has nothing left to yield.
Trait Implementations§
Source§impl Clone for CoroutineStep
impl Clone for CoroutineStep
Source§fn clone(&self) -> CoroutineStep
fn clone(&self) -> CoroutineStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CoroutineStep
impl Debug for CoroutineStep
impl Eq for CoroutineStep
Source§impl PartialEq for CoroutineStep
impl PartialEq for CoroutineStep
Source§fn eq(&self, other: &CoroutineStep) -> bool
fn eq(&self, other: &CoroutineStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CoroutineStep
Auto Trait Implementations§
impl Freeze for CoroutineStep
impl RefUnwindSafe for CoroutineStep
impl Send for CoroutineStep
impl Sync for CoroutineStep
impl Unpin for CoroutineStep
impl UnsafeUnpin for CoroutineStep
impl UnwindSafe for CoroutineStep
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