9 releases

0.1.8 Jan 25, 2021
0.1.7 Dec 6, 2020
0.1.6 Nov 30, 2020

#123 in Network programming

Download history 110/week @ 2020-11-11 63/week @ 2020-11-18 58/week @ 2020-11-25 417/week @ 2020-12-02 1860/week @ 2020-12-09 3048/week @ 2020-12-16 1391/week @ 2020-12-23 2169/week @ 2020-12-30 4780/week @ 2021-01-06 4993/week @ 2021-01-13 5628/week @ 2021-01-20 6318/week @ 2021-01-27 6776/week @ 2021-02-03 7222/week @ 2021-02-10 7513/week @ 2021-02-17

7,581 downloads per month
Used in 35 crates (4 directly)

MIT/Apache

29KB
741 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.5–0.8MB
~16K SLoC