pub enum Error<TE> {
UsbError(TE),
OperationError(UsbOperationError),
}Expand description
Error type return by most Device method
Variants§
UsbError(TE)
OperationError(UsbOperationError)
Trait Implementations§
Source§impl<TE> Error for Error<TE>
impl<TE> Error for Error<TE>
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 Error<TransferError>
Available on crate feature nusb only.
impl From<TransferError> for Error<TransferError>
Available on crate feature
nusb only.Source§fn from(value: TransferError) -> Self
fn from(value: TransferError) -> Self
Converts to this type from the input type.
Source§impl<TE> From<UsbOperationError> for Error<TE>
impl<TE> From<UsbOperationError> for Error<TE>
Source§fn from(source: UsbOperationError) -> Self
fn from(source: UsbOperationError) -> Self
Converts to this type from the input type.
impl<TE: Eq> Eq for Error<TE>
impl<TE> StructuralPartialEq for Error<TE>
Auto Trait Implementations§
impl<TE> Freeze for Error<TE>where
TE: Freeze,
impl<TE> RefUnwindSafe for Error<TE>where
TE: RefUnwindSafe,
impl<TE> Send for Error<TE>where
TE: Send,
impl<TE> Sync for Error<TE>where
TE: Sync,
impl<TE> Unpin for Error<TE>where
TE: Unpin,
impl<TE> UnwindSafe for Error<TE>where
TE: UnwindSafe,
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