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

Method open

src/sync_stream.rs:43–45  ·  view source on GitHub ↗
(path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected