Enum hidapi_rusb::HidError
source · pub enum HidError {
HidApiError {
message: String,
},
HidApiErrorEmptyWithCause {
cause: Box<dyn Error + Send + Sync>,
},
HidApiErrorEmpty,
FromWideCharError {
wide_char: wchar_t,
},
InitializationError,
OpenHidDeviceError,
InvalidZeroSizeData,
IncompleteSendError {
sent: usize,
all: usize,
},
SetBlockingModeError {
mode: &'static str,
},
OpenHidDeviceWithDeviceInfoError {
device_info: Box<HidDeviceInfo>,
},
}
Variants§
HidApiError
HidApiErrorEmptyWithCause
👎Deprecated
HidApiErrorEmpty
FromWideCharError
InitializationError
OpenHidDeviceError
👎Deprecated
InvalidZeroSizeData
IncompleteSendError
SetBlockingModeError
OpenHidDeviceWithDeviceInfoError
Fields
§
device_info: Box<HidDeviceInfo>
Trait Implementations§
source§impl Error for HidError
impl Error for HidError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for HidError
impl Send for HidError
impl Sync for HidError
impl Unpin for HidError
impl !UnwindSafe for HidError
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