Crates.io | if-watch |
lib.rs | if-watch |
version | 3.2.0 |
source | src |
created_at | 2020-11-12 00:02:32.848875 |
updated_at | 2023-11-21 20:57:31.619578 |
description | crossplatform asynchronous network watcher |
homepage | |
repository | https://github.com/mxinden/if-watch |
max_upload_size | |
id | 311438 |
size | 62,251 |
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.
MIT OR Apache-2.0