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

Success (no error)

Input/output error

Invalid parameter

Access denied (insufficient permissions)

No such device (it may have been disconnected)

Entity not found

Resource busy

Operation timed out

Overflow

Pipe error

System call interrupted (perhaps due to signal)

Insufficient memory

Operation not supported or unimplemented on this platform

Other error

Trait Implementations

impl Copy for libusb_error
[src]

impl Clone for libusb_error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for libusb_error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for libusb_error
[src]

impl Debug for libusb_error
[src]

Formats the value using the given formatter.