Expand description
A simple ICMP ping library for Rust.
This library provides a straightforward way to send ICMP echo requests (pings) to hosts using both IPv4 and IPv6. It requires elevated privileges (root/sudo) to create raw sockets.
§Examples
use single_ping::ping;
let result = ping("example.com", 1000, 32).unwrap();
println!("Ping successful with {}ms latency", result.latency_ms);Structs§
- Ping
Result - Result of a ping operation.