Enum libusb::Error [] [src]

pub enum Error {
    Success,
    Io,
    InvalidParam,
    Access,
    NoDevice,
    NotFound,
    Busy,
    Timeout,
    Overflow,
    Pipe,
    Interrupted,
    NoMem,
    NotSupported,
    Other,
}

Errors returned by the libusb library.

Variants

Success

Success (no error).

Io

Input/output error.

InvalidParam

Invalid parameter.

Access

Access denied (insufficient permissions).

NoDevice

No such device (it may have been disconnected).

NotFound

Entity not found.

Busy

Resource busy.

Timeout

Operation timed out.

Overflow

Overflow.

Pipe

Pipe error.

Interrupted

System call interrupted (perhaps due to signal).

NoMem

Insufficient memory.

NotSupported

Operation not supported or unimplemented on this platform.

Other

Other error.

Methods

impl Error
[src]

fn strerror(&self) -> &'static str

Returns a description of an error suitable for display to an end user.

Trait Implementations

impl Debug for Error
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Error
[src]

fn fmt(&self, fmt: &mut Formatter) -> StdResult<()Error>

Formats the value using the given formatter.

impl StdError for Error
[src]

fn description(&self) -> &'static str

A short description of the error. Read more

fn cause(&self) -> Option<&Error>
1.0.0

The lower-level cause of this error, if any.