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]
impl Display for Error
[src]
fn fmt(&self, fmt: &mut Formatter) -> StdResult<(), Error>
Formats the value using the given formatter.