1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#[derive(thiserror::Error, Debug)]
pub enum ConnectError {
#[error("No GoXLR device was found")]
DeviceNotFound,
#[error("USB error: {0}")]
UsbError(#[from] rusb::Error),
#[error("Device is not a GoXLR")]
DeviceNotGoXLR,
#[error("Unable to Claim Interface")]
DeviceNotClaimed,
#[error("GoXLR Initialised, please wait.. (You may need to reboot your computer)")]
DeviceNeedsReboot,
}
#[derive(thiserror::Error, Debug)]
pub enum CommandError {
#[error("USB error: {0}")]
UsbError(#[from] rusb::Error),
#[error("Malformed response from GoXLR")]
MalformedResponse(#[from] std::io::Error),
}