pub struct Interface { /* private fields */ }Expand description
A USB interface to perform transfers with.
Trait Implementations§
Source§impl<'a> UsbInterface<'a> for Interface
impl<'a> UsbInterface<'a> for Interface
Source§async fn control_in(&self, data: ControlIn) -> Result<Vec<u8>, Error>
async fn control_in(&self, data: ControlIn) -> Result<Vec<u8>, Error>
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, Error>
async fn control_out(&self, data: ControlOut<'a>) -> Result<usize, Error>
A USB control out transfer (host to device)
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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