Registry / networking / ping
library0.7.1rscratesunverified

Simple and naive ping implementation in Rust.

# Cargo.toml [dependencies] ping = "0.7.1"
INSTALL
IMPORT
SIG · PING
P
ping
networkingrustv0.7.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ping
use ping::ping;

Pings an IP address and prints the result.

use ping::ping; fn main() { match ping("8.8.8.8") { Ok(reply) => println!("Ping: {:?}", reply), Err(e) => eprintln!("Error: {}", e), } }
Debug
Known issues
gotchaRequires root/administrator privileges on some systems to create raw sockets.
fix
Run the binary with elevated permissions or use a different ping method.
affects: >=0.7.0
Upgrade
Version history
0.7.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
ping — cargo add ping · libregistry