Try to wait for the next event in this stream. Any errors are likely to be fatal, i.e. any calls afterwards will likely error as well.
(&mut self)
| 603 | /// Try to wait for the next event in this stream. Any errors are likely to be fatal, i.e. |
| 604 | /// any calls afterwards will likely error as well. |
| 605 | pub async fn next_event(&mut self) -> io::Result<InputEvent> { |
| 606 | poll_fn(|cx| self.poll_event(cx)).await |
| 607 | } |
| 608 | |
| 609 | /// A lower-level function for directly polling this stream. |
| 610 | pub fn poll_event(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<InputEvent>> { |