Debian Codegraph @

examples/logchanges.rs

raw symbols SCIP
1 use timestamped_socketrust-analyzer cargo timestamped-socket 0.2.2 crate/::interfacerust-analyzer cargo timestamped-socket 0.2.2 interface/::ChangeDetectorrust-analyzer cargo timestamped-socket 0.2.2 interface/linux/ChangeDetector#;
2
3 #[tokiorust-analyzer cargo tokio 1.35.1 crate/::mainrust-analyzer cargo tokio-macros 2.2.0 main:]
4 async fn mainrust-analyzer cargo timestamped-socket 0.2.2 main().() {
5 let mut detector = ChangeDetectorrust-analyzer cargo timestamped-socket 0.2.2 interface/linux/ChangeDetector#::newrust-analyzer cargo timestamped-socket 0.2.2 interface/linux/impl#[ChangeDetector]new().().unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().();
6
7 loop {
8 detector.wait_for_changerust-analyzer cargo timestamped-socket 0.2.2 interface/linux/impl#[ChangeDetector]wait_for_change().().rust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().awaitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core future/future/Future#poll().;
9 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("Change detected");
10 }
11 }