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

Method next_event

src/uinput.rs:605–607  ·  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

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>> {

Callers 2

mainFunction · 0.45

Calls 1

poll_eventMethod · 0.45

Tested by 2

mainFunction · 0.36