pub enum LibUsbError {
Show 14 variants
Io,
InvalidParam,
Access,
NoDevice,
NotFound,
Busy,
Timeout,
Overflow,
Pipe,
Interrupted,
NoMem,
NotSupported,
BadDescriptor,
Other,
}Expand description
Errors raised from libusb.
Variants§
Io
InvalidParam
Access
NoDevice
NotFound
Busy
Timeout
Overflow
Pipe
Interrupted
NoMem
NotSupported
BadDescriptor
Other
Trait Implementations§
Source§impl Debug for LibUsbError
impl Debug for LibUsbError
Source§impl Display for LibUsbError
impl Display for LibUsbError
Source§impl Error for LibUsbError
impl Error for LibUsbError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<LibUsbError> for Error
impl From<LibUsbError> for Error
Source§fn from(source: LibUsbError) -> Self
fn from(source: LibUsbError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LibUsbError
impl RefUnwindSafe for LibUsbError
impl Send for LibUsbError
impl Sync for LibUsbError
impl Unpin for LibUsbError
impl UnwindSafe for LibUsbError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more