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§
- Mock
UsbTransfer - In-memory mock of
UsbTransferfor unit tests. - Rusb
Transfer UsbTransferbacked by a realrusb::DeviceHandle.
Traits§
- UsbTransfer
- Abstraction over a claimed USB device for bulk endpoint I/O.