iowarrior_embedded_hal/communication/initialization_error.rs
1use hidapi::HidError;
2use thiserror::Error;
3
4#[non_exhaustive]
5#[derive(Error, Debug)]
6pub enum InitializationError {
7 #[error("USB HID error.")]
8 ErrorUSB(HidError),
9 #[error("Internal error: {0}")]
10 InternalError(String),
11 #[error("IOWarrior not found with serial number: {0}")]
12 NotFound(String),
13}