crosvm/usb_util/src
Daniel Verkamp 13eea9f028 usb: clarify transfer cancellation API
Rather than having a get_canceller() function on UsbTransfer, make the
submit function return the canceller.  This makes it clear that the
transfer can't be cancelled before it is submitted.

BUG=None
TEST=None

Change-Id: Ice36c3096a1f8a5aafe93b5d5e27eb371183c19f
Signed-off-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1783599
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-09-09 18:20:40 +00:00
..
bindings.rs usb: switch to new libusb_wrap_sys_device API 2019-06-27 17:51:06 +00:00
config_descriptor.rs
device_handle.rs usb: clarify transfer cancellation API 2019-09-09 18:20:40 +00:00
endpoint_descriptor.rs
error.rs
hotplug.rs
interface_descriptor.rs
lib.rs
libusb_context.rs usb: switch to new libusb_wrap_sys_device API 2019-06-27 17:51:06 +00:00
libusb_device.rs usb: switch to new libusb_wrap_sys_device API 2019-06-27 17:51:06 +00:00
types.rs
usb_transfer.rs usb: clarify transfer cancellation API 2019-09-09 18:20:40 +00:00