pub struct YieldHandle { /* private fields */ }Expand description
A handle for requesting a yield from outside the task.
Implementations§
Source§impl YieldHandle
impl YieldHandle
Sourcepub fn is_pending(&self) -> bool
pub fn is_pending(&self) -> bool
Check if a yield is pending.
Auto Trait Implementations§
impl Freeze for YieldHandle
impl RefUnwindSafe for YieldHandle
impl Send for YieldHandle
impl Sync for YieldHandle
impl Unpin for YieldHandle
impl UnsafeUnpin for YieldHandle
impl UnwindSafe for YieldHandle
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