| Crates.io | online |
| lib.rs | online |
| version | 4.0.2 |
| created_at | 2019-05-18 21:35:35.47974+00 |
| updated_at | 2024-02-14 21:50:51.188055+00 |
| description | 📶 Library to check your Internet connectivity |
| homepage | |
| repository | https://github.com/jesusprubio/online.git |
| max_upload_size | |
| id | 135151 |
| size | 15,837 |
Features
How it works
The library is available on crates.io. In example, through cargo-edit:
cargo add online
online = { version = "4.0.0", default-features = false, features = ["tokio"] }
📝 Please visit the examples and documentation to check the details.
use online::check;
println!("Online? {}", check(None).is_ok());
println!("Online (timeout)? {}", check(Some(5)).is_ok());
cargo run --example sync
cargo run --features="tokio-runtime" --example tokio