fn usb_read(&self, data: &mut [u8]) -> Result<(), Error> {
        self.send_usb_request(AW_USB_READ, data.len() as u32)
            .context("unable to send AW_USB_READ USB request")?;
        UsbHandle::usb_bulk_recv(&self.device_handle, self.endpoint_in, data).context({
            "unable to receive data in bulk from USB after AW_USB_READ USB \
             request"
        })?;
        self.read_usb_response()
            .context("unable to read response from USB")?;
        Ok(())
    }
/// Reads the given data from the USB.
Reads the given data from the USB.
Reads the given data from the USB .
fn usb_read(&self, data: &mut [u8]) -> Result<(), Error> {
        self.send_usb_request(AW_USB_READ, data.len() as u32)
            .context("unable to send AW_USB_READ USB request")?;
        UsbHandle::usb_bulk_recv(&self.device_handle, self.endpoint_in, data).context({
            "unable to receive data in bulk from USB after AW_USB_READ USB \
             request"
        })?;
        self.read_usb_response()
            .context("unable to read response from USB")?;
        Ok(())
    }
fn usb_read ( & self , data : & mut [ u8 ] ) -> Result < ( ) , Error > { self . send_usb_request ( AW_USB_READ , data . len ( ) as u32 ) . context ( " " ) ? ; UsbHandle :: usb_bulk_recv ( & self . device_handle , self . endpoint_in , data ) . context ( { " \
 " } ) ? ; self . read_usb_response ( ) . context ( " " ) ? ; Ok ( ( ) ) }
Reads the given data from the USB.
Reads the given data from the USB .
&self
data
&mut [u8]
&self
data
&mut [u8]