Enum open_coroutine::coroutine::CoroutineResult
source · pub enum CoroutineResult<Yield, Return> {
Yield(Yield),
Return(Return),
SystemCall,
}
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.
SystemCall
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 moresource§impl<Yield, Return> Debug for CoroutineResult<Yield, Return>where
Yield: Debug,
Return: Debug,
impl<Yield, Return> Debug for CoroutineResult<Yield, Return>where
Yield: Debug,
Return: Debug,
source§impl<Yield, Return> PartialEq<CoroutineResult<Yield, Return>> for CoroutineResult<Yield, Return>where
Yield: PartialEq<Yield>,
Return: PartialEq<Return>,
impl<Yield, Return> PartialEq<CoroutineResult<Yield, Return>> for CoroutineResult<Yield, Return>where
Yield: PartialEq<Yield>,
Return: PartialEq<Return>,
source§fn eq(&self, other: &CoroutineResult<Yield, Return>) -> bool
fn eq(&self, other: &CoroutineResult<Yield, Return>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.