22 releases (9 stable)

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

#320 in Network programming

Download history 59111/week @ 2024-08-17 71922/week @ 2024-08-24 78098/week @ 2024-08-31 72126/week @ 2024-09-07 67639/week @ 2024-09-14 71255/week @ 2024-09-21 70368/week @ 2024-09-28 73632/week @ 2024-10-05 70415/week @ 2024-10-12 72286/week @ 2024-10-19 61534/week @ 2024-10-26 74105/week @ 2024-11-02 64686/week @ 2024-11-09 68210/week @ 2024-11-16 74113/week @ 2024-11-23 65414/week @ 2024-11-30

282,621 downloads per month
Used in 309 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–46MB
~673K SLoC