usb_if/
err.rs

1use alloc::boxed::Box;
2
3#[derive(thiserror::Error, Debug)]
4pub enum TransferError {
5    #[error("Stall")]
6    Stall,
7    #[error("Request queue full")]
8    RequestQueueFull,
9    #[error("Other error: {0}")]
10    Other(#[from] Box<dyn core::error::Error>),
11}
12/*
13
14LIBUSB_SUCCESS
15Success (no error)
16
17LIBUSB_ERROR_IO
18Input/output error.
19
20LIBUSB_ERROR_INVALID_PARAM
21Invalid parameter.
22
23LIBUSB_ERROR_ACCESS
24Access denied (insufficient permissions)
25
26LIBUSB_ERROR_NO_DEVICE
27No such device (it may have been disconnected)
28
29LIBUSB_ERROR_NOT_FOUND
30Entity not found.
31
32LIBUSB_ERROR_BUSY
33Resource busy.
34
35LIBUSB_ERROR_TIMEOUT
36Operation timed out.
37
38LIBUSB_ERROR_OVERFLOW
39Overflow.
40
41LIBUSB_ERROR_PIPE
42Pipe error.
43
44LIBUSB_ERROR_INTERRUPTED
45System call interrupted (perhaps due to signal)
46
47LIBUSB_ERROR_NO_MEM
48Insufficient memory.
49
50LIBUSB_ERROR_NOT_SUPPORTED
51Operation not supported or unimplemented on this platform.
52
53LIBUSB_ERROR_OTHER
54Other error.
55*/