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]
impl Error
pub fn strerror(&self) -> &'static str
[src]
pub 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 Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, fmt: &mut Formatter) -> StdResult<(), Error>
[src]
fn fmt(&self, fmt: &mut Formatter) -> StdResult<(), Error>
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error