Struct tokio_ping::Pinger [−][src]
pub struct Pinger { /* fields omitted */ }
ICMP packets sender and receiver.
Methods
impl Pinger
[src]
impl Pinger
pub fn new(
) -> impl Future<Item = Self, Error = Error>
[src]
pub fn new(
) -> impl Future<Item = Self, Error = Error>
Create new Pinger
instance, will fail if unable to create both IPv4 and IPv6 sockets.
pub fn chain(&self, hostname: IpAddr) -> PingChain
[src]
pub fn chain(&self, hostname: IpAddr) -> PingChain
Ping the same host several times.
pub fn ping(
&self,
hostname: IpAddr,
ident: u16,
seq_cnt: u16,
timeout: Duration
) -> PingFuture
[src]
pub fn ping(
&self,
hostname: IpAddr,
ident: u16,
seq_cnt: u16,
timeout: Duration
) -> PingFuture
Send ICMP request and wait for response.