MCPcopy Create free account
hub / github.com/emberian/evdev / next_event

Method next_event

src/sync_stream.rs:828–830  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

826 /// Try to wait for the next event in this stream. Any errors are likely to be fatal, i.e.
827 /// any calls afterwards will likely error as well.
828 pub async fn next_event(&mut self) -> io::Result<InputEvent> {
829 poll_fn(|cx| self.poll_event(cx)).await
830 }
831
832 /// A lower-level function for directly polling this stream.
833 pub fn poll_event(&mut self, cx: &mut Context<'_>) -> Poll<io::Result<InputEvent>> {

Callers

nothing calls this directly

Calls 1

poll_eventMethod · 0.45

Tested by

no test coverage detected