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

Method enumerate_dev_nodes

src/uinput.rs:304–309  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

302 /// Get the syspaths of the corresponding device nodes in /dev/input.
303 #[cfg(feature = "tokio")]
304 pub async fn enumerate_dev_nodes(&mut self) -> io::Result<DevNodes> {
305 let path = self.get_syspath()?;
306 let dir = tokio::fs::read_dir(path).await?;
307
308 Ok(DevNodes { dir })
309 }
310
311 /// Post a batch of events to the virtual device.
312 ///

Callers

nothing calls this directly

Calls 1

get_syspathMethod · 0.80

Tested by

no test coverage detected