pub struct YieldHandle<Y, R = ()> { /* private fields */ }Expand description
The yield handle can be used from within the coroutine to yield values and receive a resume value when the coroutine is resumed.
Implementations§
Source§impl<Y, R> YieldHandle<Y, R>
impl<Y, R> YieldHandle<Y, R>
Auto Trait Implementations§
impl<Y, R> Freeze for YieldHandle<Y, R>
impl<Y, R = ()> !RefUnwindSafe for YieldHandle<Y, R>
impl<Y, R = ()> !Send for YieldHandle<Y, R>
impl<Y, R = ()> !Sync for YieldHandle<Y, R>
impl<Y, R> Unpin for YieldHandle<Y, R>
impl<Y, R = ()> !UnwindSafe for YieldHandle<Y, R>
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