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

Function enumerate

src/lib.rs:478–482  ·  view source on GitHub ↗

Crawls `/dev/input` for evdev devices. Will not bubble up any errors in opening devices or traversing the directory. Instead returns an empty iterator or omits the devices that could not be opened.

()

Source from the content-addressed store, hash-verified

476/// Will not bubble up any errors in opening devices or traversing the directory. Instead returns
477/// an empty iterator or omits the devices that could not be opened.
478pub fn enumerate() -> EnumerateDevices {
479 EnumerateDevices {
480 inner: raw_stream::enumerate(),
481 }
482}
483
484/// An iterator over currently connected evdev devices.
485pub struct EnumerateDevices {

Callers 2

pick_deviceFunction · 0.50

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…