[][src]Struct tokio_ping::PingChain

pub struct PingChain { /* fields omitted */ }

Ping the same host several times.

Methods

impl PingChain[src]

pub fn ident(self, ident: u16) -> Self[src]

Set ICMP ident. Default value is randomized.

pub fn seq_cnt(self, seq_cnt: u16) -> Self[src]

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]

Set ping timeout. Default timeout is two seconds.

pub fn send(&mut self) -> PingFuture[src]

Send ICMP request and wait for response.

pub fn stream(self) -> PingChainStream[src]

Create infinite stream of ping response times.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T