(mut self: Pin<&mut Self>, cx: &mut Context<'_>)
| 797 | type Output = (F::Output, usize); |
| 798 | |
| 799 | fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { |
| 800 | match Pin::new(&mut self.future).poll(cx) { |
| 801 | Poll::Pending => { |
| 802 | self.yields += 1; |
| 803 | Poll::Pending |
| 804 | } |
| 805 | Poll::Ready(e) => Poll::Ready((e, self.yields)), |
| 806 | } |
| 807 | } |
| 808 | } |
| 809 | |
| 810 | pub struct PollOnce<F>(Option<F>); |
no test coverage detected