Struct tokio_ping::PingChain [−][src]
pub struct PingChain { /* fields omitted */ }
Ping the same host several times.
Methods
impl PingChain
[src]
impl PingChain
pub fn ident(self, ident: u16) -> Self
[src]
pub fn ident(self, ident: u16) -> Self
Set ICMP ident. Default value is randomized.
pub fn seq_cnt(self, seq_cnt: u16) -> Self
[src]
pub fn seq_cnt(self, seq_cnt: u16) -> Self
Set ICMP seq_cnt, this value will be incremented by one for every send
.
Default value is 0.
pub fn timeout(self, timeout: Duration) -> Self
[src]
pub fn timeout(self, timeout: Duration) -> Self
Set ping timeout. Default timeout is two seconds.
pub fn send(&mut self) -> PingFuture
[src]
pub fn send(&mut self) -> PingFuture
Send ICMP request and wait for response.
pub fn stream(self) -> PingChainStream
[src]
pub fn stream(self) -> PingChainStream
Create infinite stream of ping response times.