(path: impl AsRef<Path>)
| 93 | /// Paths are typically something like `/dev/input/event0`. |
| 94 | #[inline(always)] |
| 95 | pub fn open(path: impl AsRef<Path>) -> io::Result<RawDevice> { |
| 96 | Self::_open(path.as_ref()) |
| 97 | } |
| 98 | |
| 99 | fn _open(path: &Path) -> io::Result<RawDevice> { |
| 100 | let mut options = OpenOptions::new(); |