rusb
rusb copied to clipboard
Give Speed enum members the values of the various LIBUSB_SPEED_ constants
Give Speed enum members the values of the various LIBUSB_SPEED_ constants and the same #[repr()].
Likewise do this for other enums, eg Direction, Recipient, RequestType, etc.
If this is done the match clauses in, say request_type can be replaced with more efficient as.