22 releases (9 stable)

new 3.2.1 Nov 18, 2024
3.2.0 Nov 21, 2023
3.1.0 Oct 12, 2023
3.0.1 Mar 30, 2023
0.1.6 Nov 30, 2020

#495 in Network programming

Download history 56383/week @ 2024-07-31 74378/week @ 2024-08-07 68323/week @ 2024-08-14 62961/week @ 2024-08-21 77545/week @ 2024-08-28 77058/week @ 2024-09-04 67881/week @ 2024-09-11 71481/week @ 2024-09-18 67363/week @ 2024-09-25 75435/week @ 2024-10-02 69918/week @ 2024-10-09 71289/week @ 2024-10-16 68524/week @ 2024-10-23 67054/week @ 2024-10-30 71162/week @ 2024-11-06 64674/week @ 2024-11-13

284,643 downloads per month
Used in 307 crates (15 directly)

MIT/Apache

29KB
641 lines

Cross platform asynchronous network watcher

cargo run --example if_watch
Got event Ok(Up(127.0.0.1/8))
Got event Ok(Up(192.168.6.65/24))
Got event Ok(Up(::1/128))
Got event Ok(Up(2a01:8b81:7000:9700:cef9:e4ff:fe9e:b23b/64))
Got event Ok(Up(fe80::cef9:e4ff:fe9e:b23b/64))

Supported platforms at the moment are: Linux, Windows and Android with a fallback for Macos and ios that polls for changes every 10s.

License

MIT OR Apache-2.0


lib.rs:

IP address watching.

Dependencies

~0.8–43MB
~668K SLoC