18 releases (5 stable)

Uses new Rust 2021

3.0.0 Nov 4, 2022
2.0.0 Aug 20, 2022
1.1.1 Jun 24, 2022
1.0.0 Jan 12, 2022
0.1.6 Nov 30, 2020

#1164 in Network programming

Download history 20098/week @ 2022-09-28 19950/week @ 2022-10-05 20978/week @ 2022-10-12 19634/week @ 2022-10-19 15795/week @ 2022-10-26 22805/week @ 2022-11-02 23273/week @ 2022-11-09 22894/week @ 2022-11-16 21321/week @ 2022-11-23 23234/week @ 2022-11-30 24536/week @ 2022-12-07 19938/week @ 2022-12-14 14842/week @ 2022-12-21 11519/week @ 2022-12-28 20241/week @ 2023-01-04 18295/week @ 2023-01-11

68,175 downloads per month
Used in 136 crates (11 directly)

MIT/Apache

26KB
626 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–49MB
~812K SLoC