[−][src]Struct tokio_ping::PingChain
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
impl Send for PingChain
impl Unpin for PingChain
impl Sync for PingChain
impl !UnwindSafe for PingChain
impl !RefUnwindSafe for PingChain
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,