Struct cross_usb::UsbInterface
source · pub struct UsbInterface { /* private fields */ }Expand description
An implementation of a USB interface
Trait Implementations§
source§impl<'a> Interface<'a> for UsbInterface
impl<'a> Interface<'a> for UsbInterface
source§async fn control_in(&self, data: ControlIn) -> Result<Vec<u8>, UsbError>
async fn control_in(&self, data: ControlIn) -> Result<Vec<u8>, UsbError>
A USB control in transfer (device to host)
Returns a Result with the bytes in a
Vec<u8>source§async fn control_out(&self, data: ControlOut<'a>) -> Result<usize, UsbError>
async fn control_out(&self, data: ControlOut<'a>) -> Result<usize, UsbError>
A USB control out transfer (host to device)
Auto Trait Implementations§
impl RefUnwindSafe for UsbInterface
impl Send for UsbInterface
impl Sync for UsbInterface
impl Unpin for UsbInterface
impl UnwindSafe for UsbInterface
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more