Struct async_ping::PingClient 
source · pub struct PingClient<C>where
    C: AsyncClient,{ /* private fields */ }Implementations§
source§impl<C> PingClient<C>where
    C: AsyncClient,
 
impl<C> PingClient<C>where C: AsyncClient,
pub fn new( v4_client_config: ClientConfig, v6_client_config: ClientConfig ) -> Result<Self, IoError>
pub async fn handle_v4_recv_from(&self)
pub async fn handle_v6_recv_from(&self)
pub async fn ping( &self, ip: IpAddr, identifier: Option<u16>, sequence_number: Option<u16>, payload: impl AsRef<[u8]>, timeout_dur: Duration ) -> Result<(Icmp, Duration), PingError>
pub async fn ping_v4( &self, ip: Ipv4Addr, identifier: Option<u16>, sequence_number: Option<u16>, payload: impl AsRef<[u8]>, timeout_dur: Duration ) -> Result<(Icmpv4, Duration), PingError>
pub async fn ping_v6( &self, ip: Ipv6Addr, identifier: Option<u16>, sequence_number: Option<u16>, payload: impl AsRef<[u8]>, timeout_dur: Duration ) -> Result<(Icmpv6, Duration), PingError>
Trait Implementations§
source§impl<C> Clone for PingClient<C>where
    C: AsyncClient + Clone,
 
impl<C> Clone for PingClient<C>where C: AsyncClient + Clone,
source§fn clone(&self) -> PingClient<C>
 
fn clone(&self) -> PingClient<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read more