(bytes: &[u8])
| 43 | #[error("value of {1} is not supported for {0}")] |
| 44 | UnsupportedIntValue(String, i32), |
| 45 | #[error("USB I/O error: {0}")] |
| 46 | Usb(#[from] Errno), |
| 47 | #[error("IO error: {0}")] |
| 48 | IOError(#[from] io::Error), |
| 49 | #[error("no camera found")] |
| 50 | NoCameraFound, |
| 51 | #[error("device reports control length {expected}, need {got}")] |
| 52 | BufferSize { expected: usize, got: usize }, |
| 53 | #[error("status block too short: {0} bytes")] |
| 54 | ShortStatus(usize), |
| 55 | #[error("unknown AI mode code ({0}, {1})")] |
| 56 | UnknownAIMode(u8, u8), |
| 57 | #[error("vendor frame error: {0}")] |
| 58 | Frame(#[from] frame::FrameError), |
| 59 | #[error("no reply to framed command {cmd:#06x} (seq {seq})")] |
| 60 | NoFrameReply { cmd: u16, seq: u16 }, |
| 61 | #[error("unexpected reply payload for {cmd:#06x}: {payload:02x?}")] |
| 62 | BadFrameReply { cmd: u16, payload: Vec<u8> }, |
| 63 | #[error("implausible preset list (count {0}): read failed or camera asleep")] |
| 64 | BadPresetList(u8), |
| 65 | #[error("preset slot {0} is empty, and creating a preset is not supported")] |
| 66 | PresetSlotEmpty(u8), |
| 67 | } |
| 68 | |
| 69 | #[derive(Debug)] |
nothing calls this directly
no outgoing calls
no test coverage detected