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

Method poll_next

src/sync_stream.rs:878–883  ·  view source on GitHub ↗
(
            self: std::pin::Pin<&mut Self>,
            cx: &mut Context<'_>,
        )

Source from the content-addressed store, hash-verified

876 impl futures_core::Stream for EventStream {
877 type Item = io::Result<InputEvent>;
878 fn poll_next(
879 self: std::pin::Pin<&mut Self>,
880 cx: &mut Context<'_>,
881 ) -> Poll<Option<Self::Item>> {
882 self.get_mut().poll_event(cx).map(Some)
883 }
884 }
885}
886#[cfg(feature = "tokio")]

Callers

nothing calls this directly

Calls 1

poll_eventMethod · 0.45

Tested by

no test coverage detected