timestamped-socket 0.2.8

Implementation of async UDP and raw ethernet sockets with timestamping
Documentation
1
2
3
4
5
6
7
8
9
10
11
use timestamped_socket::interface::ChangeDetector;

#[tokio::main]
async fn main() {
    let mut detector = ChangeDetector::new().unwrap();

    loop {
        detector.wait_for_change().await;
        println!("Change detected");
    }
}