online

📶 Library to check your Internet connectivity

Logo

Workflow status Latest version

Features

How it works

Install

The library is available on crates.io. In example, through cargo-edit:

sh cargo add online

Async

toml online = { version = "4.0.0", default-features = false, features = ["tokio"] }

Use

📝 Please visit the tests and documentation to check the details.

```rust use online::check;

println!("Online? {}", check(None).isok()); println!("Online (timeout)? {}", check(Some(5)).isok()); ```