Get the syspaths of the corresponding device nodes in /dev/input.
(&mut self)
| 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")] |
no test coverage detected