pub fn recv(&mut self) -> Result<(&[u8], IpEndpoint)> {
        let packet_buf = self.rx_buffer.dequeue_one()?;
        net_trace!("{}:{}:{}: receive {} buffered octets",
                   self.meta.handle, self.endpoint,
                   packet_buf.endpoint, packet_buf.size);
        Ok((&packet_buf.as_ref(), packet_buf.endpoint))
    }
/// Dequeue a packet received from a remote endpoint, and return the endpoint as well
/// as a pointer to the payload.
///
/// This function returns `Err(Error::Exhausted)` if the receive buffer is empty.
Dequeue a packet received from a remote endpoint, and return the endpoint as well
as a pointer to the payload.

This function returns `Err(Error::Exhausted)` if the receive buffer is empty.
Dequeue a packet received from a remote endpoint and return the endpoint as well as a pointer to the payload . This function returns ` Err ( Error :: Exhausted ) ` if the receive buffer is empty .
pub fn recv(&mut self) -> Result<(&[u8], IpEndpoint)> {
        let packet_buf = self.rx_buffer.dequeue_one()?;
        net_trace!("{}:{}:{}: receive {} buffered octets",
                   self.meta.handle, self.endpoint,
                   packet_buf.endpoint, packet_buf.size);
        Ok((&packet_buf.as_ref(), packet_buf.endpoint))
    }
pub fn recv ( & mut self ) -> Result < ( & [ u8 ] , IpEndpoint ) > { let packet_buf = self . rx_buffer . dequeue_one ( ) ? ; net_trace ! ( " " self meta handle self endpoint packet_buf endpoint packet_buf size ) ; Ok ( ( & packet_buf . as_ref ( ) , packet_buf . endpoint ) ) }
Dequeue a packet received from a remote endpoint, and return the endpoint as well
as a pointer to the payload.
Dequeue a packet received from a remote endpoint and return the endpoint as well as a pointer to the payload .
&mut self
&mut self