usb_if/
err.rs

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