#[repr(i32)]pub enum LibusbError {
Show 13 variants
IoError = -1,
InvalidParam = -2,
AccessDenied = -3,
NoDevice = -4,
NoEntity = -5,
Busy = -6,
Timeout = -7,
Overflow = -8,
Pipe = -9,
Interrupted = -10,
InsufficientMemory = -11,
NotSupported = -12,
Other = -99,
}
Variants§
IoError = -1
Input/output error
InvalidParam = -2
Invalid parameter
AccessDenied = -3
Access denied (insufficient permissions)
NoDevice = -4
No such device (it may have been disconnected)
NoEntity = -5
Entity not found
Busy = -6
Resource busy
Timeout = -7
Operation timed out
Overflow = -8
Overflow
Pipe = -9
Pipe error
Interrupted = -10
System call interrupted (perhaps due to signal)
InsufficientMemory = -11
Insufficient memory
NotSupported = -12
Operation not supported or unimplemented on this platform
Other = -99
Other error
Trait Implementations§
Source§impl Clone for LibusbError
impl Clone for LibusbError
Source§fn clone(&self) -> LibusbError
fn clone(&self) -> LibusbError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LibusbError
impl Debug for LibusbError
Source§impl PartialEq for LibusbError
impl PartialEq for LibusbError
Source§impl TryFrom<i32> for LibusbError
impl TryFrom<i32> for LibusbError
impl Copy for LibusbError
impl Eq for LibusbError
impl StructuralPartialEq for LibusbError
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