pub enum CoroutineFrameStep<T = Ref> {
Produced(T),
Consumed(T),
Complete,
}Expand description
The next observable transition from a resumable coroutine frame.
Variants§
Produced(T)
The frame produced a value from its producer side.
Consumed(T)
The frame consumed a value on its consumer side.
Complete
Both sides are exhausted.
Trait Implementations§
Source§impl<T: Clone> Clone for CoroutineFrameStep<T>
impl<T: Clone> Clone for CoroutineFrameStep<T>
Source§fn clone(&self) -> CoroutineFrameStep<T>
fn clone(&self) -> CoroutineFrameStep<T>
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<T: Debug> Debug for CoroutineFrameStep<T>
impl<T: Debug> Debug for CoroutineFrameStep<T>
impl<T: Eq> Eq for CoroutineFrameStep<T>
Source§impl<T: PartialEq> PartialEq for CoroutineFrameStep<T>
impl<T: PartialEq> PartialEq for CoroutineFrameStep<T>
impl<T: PartialEq> StructuralPartialEq for CoroutineFrameStep<T>
Auto Trait Implementations§
impl<T> Freeze for CoroutineFrameStep<T>where
T: Freeze,
impl<T> RefUnwindSafe for CoroutineFrameStep<T>where
T: RefUnwindSafe,
impl<T> Send for CoroutineFrameStep<T>where
T: Send,
impl<T> Sync for CoroutineFrameStep<T>where
T: Sync,
impl<T> Unpin for CoroutineFrameStep<T>where
T: Unpin,
impl<T> UnsafeUnpin for CoroutineFrameStep<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CoroutineFrameStep<T>where
T: UnwindSafe,
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