Skip to main content

Module usb

Module usb 

Source
Expand description

USB transfer abstraction for testability.

UsbTransfer decouples all U3V protocol logic from the rusb crate, allowing the control channel, streaming, and bootstrap parsing to be tested with MockUsbTransfer — no USB hardware required.

Structs§

MockUsbTransfer
In-memory mock of UsbTransfer for unit tests.
RusbTransfer
UsbTransfer backed by a real rusb::DeviceHandle.

Traits§

UsbTransfer
Abstraction over a claimed USB device for bulk endpoint I/O.