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

Method enumerate_dev_nodes_blocking

src/uinput.rs:295–300  ·  view source on GitHub ↗

Get the syspaths of the corresponding device nodes in /dev/input.

(&mut self)

Source from the content-addressed store, hash-verified

293
294 /// Get the syspaths of the corresponding device nodes in /dev/input.
295 pub fn enumerate_dev_nodes_blocking(&mut self) -> io::Result<DevNodesBlocking> {
296 let path = self.get_syspath()?;
297 let dir = std::fs::read_dir(path)?;
298
299 Ok(DevNodesBlocking { dir })
300 }
301
302 /// Get the syspaths of the corresponding device nodes in /dev/input.
303 #[cfg(feature = "tokio")]

Callers 5

get_deviceFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

get_syspathMethod · 0.80

Tested by

no test coverage detected