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: Option<ClientConfig>, v6_client_config: Option<ClientConfig>, ) -> Result<Self, AsyncClientWithConfigError>
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,
impl<C> Clone for PingClient<C>where
C: AsyncClient,
Auto Trait Implementations§
impl<C> Freeze for PingClient<C>
impl<C> !RefUnwindSafe for PingClient<C>
impl<C> Send for PingClient<C>
impl<C> Sync for PingClient<C>
impl<C> Unpin for PingClient<C>
impl<C> !UnwindSafe for PingClient<C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more