Enum open_coroutine::CoroutineResult
source · pub enum CoroutineResult<Yield, Return> {
Yield(Yield),
Return(Return),
}
Expand description
Value returned from resuming a coroutine.
Variants§
Yield(Yield)
Value returned by a coroutine suspending itself with a Yielder
.
Return(Return)
Value returned by a coroutine returning from its main function.
Implementations§
Trait Implementations§
source§impl<Yield, Return> Clone for CoroutineResult<Yield, Return>where
Yield: Clone,
Return: Clone,
impl<Yield, Return> Clone for CoroutineResult<Yield, Return>where
Yield: Clone,
Return: Clone,
source§fn clone(&self) -> CoroutineResult<Yield, Return>
fn clone(&self) -> CoroutineResult<Yield, Return>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more