[−][src]Crate ekko
Ekko is a simple utility for sending echo requests, giving you (mostly) everything you need.
Example
use ekko::{ error::{EkkoError}, EkkoResponse, Ekko, }; fn main() -> Result<(), EkkoError> { let mut ping = Ekko::with_target("rustup.rs")?; for hops in 1..32 { let response = ping.send(hops)?; match response { EkkoResponse::DestinationResponse(_) => { println!("{:?}", response); break }, _ => { println!("{:?}", response); }, } } Ok(()) }
Modules
error |
Structs
Ekko | |
EkkoData |
Enums
EkkoResponse | |
Unreachable | |
UnreachableCodeV4 | |
UnreachableCodeV6 |