fn poll_read(&self, report: &mut [u8]) -> Result<Async<usize>> {
        try_ready!(self.io.poll_read_ready(mio::Ready::readable()));

        match self.io.get_ref().read(report) {
            Ok(n) => Ok(n.into()),
            Err(os::Error::Io(ref e)) if e.kind() == io::ErrorKind::WouldBlock => {
                self.io.clear_read_ready(mio::Ready::readable())?;
                Ok(Async::NotReady)
            },
            Err(e) => Err(e.into()),
        }
    }
/// Polls the read status of the inner HidDevice
Polls the read status of the inner HidDevice
Polls the read status of the inner HidDevice
fn poll_read(&self, report: &mut [u8]) -> Result<Async<usize>> {
        try_ready!(self.io.poll_read_ready(mio::Ready::readable()));
        match self.io.get_ref().read(report) {
            Ok(n) => Ok(n.into()),
            Err(os::Error::Io(ref e)) if e.kind() == io::ErrorKind::WouldBlock => {
                self.io.clear_read_ready(mio::Ready::readable())?;
                Ok(Async::NotReady)
            },
            Err(e) => Err(e.into()),
        }
    }
fn poll_read ( & self , report : & mut [ u8 ] ) -> Result < Async < usize > > { try_ready ! ( self io poll_read_ready ( mio Ready readable ( ) ) ) ; match self . io . get_ref ( ) . read ( report ) { Ok ( n ) => Ok ( n . into ( ) ) , Err ( os :: Error :: Io ( ref e ) ) if e . kind ( ) == io :: ErrorKind :: WouldBlock => { self . io . clear_read_ready ( mio :: Ready :: readable ( ) ) ? ; Ok ( Async :: NotReady ) } , Err ( e ) => Err ( e . into ( ) ) , } }
Polls the read status of the inner HidDevice
Polls the read status of the inner HidDevice
&self
report
&mut [u8]