Struct open_coroutine::OpenCoroutine
source · pub struct OpenCoroutine<'a, Input, Yield, Return> { /* private fields */ }
Implementations
sourceimpl<'a, Input, Return> OpenCoroutine<'a, Input, (), Return>
impl<'a, Input, Return> OpenCoroutine<'a, Input, (), Return>
pub fn new(
f: extern "C" fn(_: &OpenYielder<'_, Input>, _: Input) -> Return,
val: Input,
size: usize
) -> OpenCoroutine<'a, Input, (), Return>
pub fn resume(&mut self) -> CoroutineResult<(), Return>
pub fn resume_with(&mut self, val: Input) -> CoroutineResult<(), Return>
Auto Trait Implementations
impl<'a, Input, Yield, Return> RefUnwindSafe for OpenCoroutine<'a, Input, Yield, Return>where
Input: RefUnwindSafe,
impl<'a, Input, Yield, Return> !Send for OpenCoroutine<'a, Input, Yield, Return>
impl<'a, Input, Yield, Return> Sync for OpenCoroutine<'a, Input, Yield, Return>where
Input: Sync,
impl<'a, Input, Yield, Return> Unpin for OpenCoroutine<'a, Input, Yield, Return>where
Input: Unpin,
impl<'a, Input, Yield, Return> UnwindSafe for OpenCoroutine<'a, Input, Yield, Return>where
Input: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more