/// Async method for receiving an ICMP packet.
///
/// See [`fuchsia_async::net::DatagramSocket::recv_from()`].
Async method for receiving an ICMP packet.
Async method for receiving an ICMP packet .
fn async_recv_from(
        &self,
        buf: &mut [u8],
        cx: &mut Context<'_>,
    ) -> Poll<std::io::Result<(usize, I::Addr)>> {
        Poll::Ready(
            ready!(self.async_recv_from(buf, cx))
                .and_then(|(len, addr)| I::Addr::try_from(addr).map(|addr| (len, addr))),
        )
    }
fn async_recv_from ( & self , buf : & mut [ u8 ] , cx : & mut Context < ' _ > , ) -> Poll < std :: io :: Result < ( usize , I :: Addr ) > > { Poll :: Ready ( ready ! ( self async_recv_from ( buf cx ) ) . and_then ( | ( len , addr ) | I :: Addr :: try_from ( addr ) . map ( | addr | ( len , addr ) ) ) , ) }
Async method for receiving an ICMP packet.
Async method for receiving an ICMP packet .
&self
buf
&mut [u8]
cx
&mut Context<'_>