Enum usb::libusb::libusb_error
[−]
[src]
#[repr(C)]pub enum libusb_error { LIBUSB_SUCCESS, LIBUSB_ERROR_IO, LIBUSB_ERROR_INVALID_PARAM, LIBUSB_ERROR_ACCESS, LIBUSB_ERROR_NO_DEVICE, LIBUSB_ERROR_NOT_FOUND, LIBUSB_ERROR_BUSY, LIBUSB_ERROR_TIMEOUT, LIBUSB_ERROR_OVERFLOW, LIBUSB_ERROR_PIPE, LIBUSB_ERROR_INTERRUPTED, LIBUSB_ERROR_NO_MEM, LIBUSB_ERROR_NOT_SUPPORTED, LIBUSB_ERROR_OTHER, }
Error codes. Most libusbx functions return 0 on success or one of these codes on failure. You can call libusb_error_name() to retrieve a string representation of an error code or libusb_strerror() to get an end-user suitable description of an error code.
Variants
LIBUSB_SUCCESS
Success (no error)
LIBUSB_ERROR_IO
Input/output error
LIBUSB_ERROR_INVALID_PARAM
Invalid parameter
LIBUSB_ERROR_ACCESS
Access denied (insufficient permissions)
LIBUSB_ERROR_NO_DEVICE
No such device (it may have been disconnected)
LIBUSB_ERROR_NOT_FOUND
Entity not found
LIBUSB_ERROR_BUSY
Resource busy
LIBUSB_ERROR_TIMEOUT
Operation timed out
LIBUSB_ERROR_OVERFLOW
Overflow
LIBUSB_ERROR_PIPE
Pipe error
LIBUSB_ERROR_INTERRUPTED
System call interrupted (perhaps due to signal)
LIBUSB_ERROR_NO_MEM
Insufficient memory
LIBUSB_ERROR_NOT_SUPPORTED
Operation not supported or unimplemented on this platform
LIBUSB_ERROR_OTHER
Other error
Trait Implementations
impl Copy for libusb_error
[src]
impl Clone for libusb_error
[src]
fn clone(&self) -> libusb_error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for libusb_error
[src]
fn eq(&self, __arg_0: &libusb_error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.