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

Method open

src/raw_stream.rs:95–97  ·  view source on GitHub ↗
(path: impl AsRef<Path>)

Source from the content-addressed store, hash-verified

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();

Callers 2

_openMethod · 0.45
newMethod · 0.45

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected