(path: impl AsRef<Path>)
| 41 | /// Paths are typically something like `/dev/input/event0`. |
| 42 | #[inline(always)] |
| 43 | pub fn open(path: impl AsRef<Path>) -> io::Result<Device> { |
| 44 | Self::_open(path.as_ref()) |
| 45 | } |
| 46 | |
| 47 | /// Opens a device, given an already opened file descriptor. |
| 48 | #[inline(always)] |