File: hotplug.rs

package info (click to toggle)
rust-nusb 0.1.13-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: makefile: 2
file content (8 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
use futures_lite::stream;

fn main() {
    env_logger::init();
    for event in stream::block_on(nusb::watch_devices().unwrap()) {
        println!("{:#?}", event);
    }
}