Struct base_coroutine::coroutine::Yielder
source · #[repr(transparent)]pub struct Yielder<'a, Param, Yield, Return> { /* private fields */ }
Implementations
sourceimpl<'a, Param, Yield, Return> Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> Yielder<'a, Param, Yield, Return>
sourcepub extern "C" fn suspend(&self, val: Yield) -> Param
pub extern "C" fn suspend(&self, val: Yield) -> Param
Suspends the execution of a currently running coroutine.
This function will switch control back to the original caller of
Coroutine::resume
. This function will then return once the
Coroutine::resume
function is called again.
pub extern "C" fn delay(&self, val: Yield, ms_time: u64) -> Param
pub extern "C" fn delay_ns(&self, val: Yield, ns_time: u64) -> Param
Auto Trait Implementations
impl<'a, Param, Yield, Return> RefUnwindSafe for Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> Send for Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> Sync for Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> Unpin for Yielder<'a, Param, Yield, Return>
impl<'a, Param, Yield, Return> UnwindSafe for Yielder<'a, Param, Yield, Return>
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