pub enum USBError {
Timeout,
NoMemory,
TransferError(TransferError),
NotInitialized,
NotFound,
SlotLimitReached,
ConfigurationNotSet,
Other(Box<dyn Error>),
}Variants§
Timeout
NoMemory
TransferError(TransferError)
NotInitialized
NotFound
SlotLimitReached
ConfigurationNotSet
Other(Box<dyn Error>)
Trait Implementations§
Source§impl Error for USBError
impl Error for USBError
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<TransferError> for USBError
impl From<TransferError> for USBError
Source§fn from(source: TransferError) -> USBError
fn from(source: TransferError) -> USBError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for USBError
impl !RefUnwindSafe for USBError
impl !Send for USBError
impl !Sync for USBError
impl Unpin for USBError
impl !UnwindSafe for USBError
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