pub enum Control<R> {
Resume(R),
Cancel,
}Expand description
Variants§
Resume(R)
Resume the computation with the given value.
Cancel
Cancel the computation. The runner will return Err(Cancelled).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Control<R>where
R: Freeze,
impl<R> RefUnwindSafe for Control<R>where
R: RefUnwindSafe,
impl<R> Send for Control<R>where
R: Send,
impl<R> Sync for Control<R>where
R: Sync,
impl<R> Unpin for Control<R>where
R: Unpin,
impl<R> UnsafeUnpin for Control<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Control<R>where
R: UnwindSafe,
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