/// Polls completed rx descriptors from the driver.
///
/// Returns the the head of a completed rx descriptor chain.
Polls completed rx descriptors from the driver.
Returns the the head of a completed rx descriptor chain.
Polls completed rx descriptors from the driver . Returns the the head of a completed rx descriptor chain .
fn poll_complete_rx(&self, cx: &mut Context<'_>) -> Poll<Result<DescId<Rx>>> {
        // TODO(https://fxbug.bug/78342): The fuchsia_async fifo wrapper API only
        // allows to read one at a time, consider batch reading to reduce the
        // number of syscalls if it becomes a performance issue in the future.
        match ready!(self.rx.try_read(cx)).map_err(|status| Error::Fifo("read", "rx", status))? {
            Some(desc) => Poll::Ready(Ok(desc)),
            None => Err(Error::PeerClosed("rx"))?,
        }
    }
fn poll_complete_rx ( & self , cx : & mut Context < ' _ > ) -> Poll < Result < DescId < Rx > > > { // TODO(https://fxbug.bug/78342): The fuchsia_async fifo wrapper API only // allows to read one at a time, consider batch reading to reduce the // number of syscalls if it becomes a performance issue in the future. match ready ! ( self rx try_read ( cx ) ) . map_err ( | status | Error :: Fifo ( " " , " " , status ) ) ? { Some ( desc ) => Poll :: Ready ( Ok ( desc ) ) , None => Err ( Error :: PeerClosed ( " " ) ) ? , } }
Polls completed rx descriptors from the driver.
Polls completed rx descriptors from the driver .
&self
cx
&mut Context<'_>