pub fn iterate_devices<P: AsRef<Path>>(
dir: P,
) -> Result<impl Iterator<Item = Device>>Expand description
Iterate over devices in dir.
If successful, it returns an iterator over Devices.
The function can fail, returning std::io::Error,
if std::fs::read_dir cannot open the directory.